r36919 - in /trunk/libsyntax-highlight-engine-simple-languages-perl/debian: copyright.head copyright.tail make-copyright.pl packages.cfg

bremner-guest at users.alioth.debian.org bremner-guest at users.alioth.debian.org
Sun May 31 12:39:03 UTC 2009


Author: bremner-guest
Date: Sun May 31 12:38:59 2009
New Revision: 36919

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=36919
Log:
Initial script to generate debian/copyright, for comments.

The idea is that packages.cfg would be the main config file, used to
generate debian/copyright and other debian/* files.  It is using
Parse::DebControl, but not build-depending on it, because the current
idea is to run various debian/make-foo.pl scripts before building the
source package.

Added:
    trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.head
    trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.tail
    trunk/libsyntax-highlight-engine-simple-languages-perl/debian/make-copyright.pl
    trunk/libsyntax-highlight-engine-simple-languages-perl/debian/packages.cfg

Added: trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.head
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.head?rev=36919&op=file
==============================================================================
--- trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.head (added)
+++ trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.head Sun May 31 12:38:59 2009
@@ -1,0 +1,4 @@
+This package contains several upstream packages; individual licenses are listed below.
+
+They are all downloaded from http://search.cpan.org/
+

Added: trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.tail
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.tail?rev=36919&op=file
==============================================================================
--- trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.tail (added)
+++ trunk/libsyntax-highlight-engine-simple-languages-perl/debian/copyright.tail Sun May 31 12:38:59 2009
@@ -1,0 +1,16 @@
+Files: debian/* 
+Copyright: © 2009, David Bremner <bremner at unb.ca>
+	   © 2009, Jonathan Yu <frequency at cpan.org>
+License: Packaging may be distributed under the same terms as Perl (see below)
+
+Perl is distributed under licenses:
+
+	a) the GNU General Public License as published by the Free Software
+	   Foundation; either version 1, or (at your option) any later
+	   version, or
+
+	b) the "Artistic License" which comes with Perl.
+
+On Debian GNU/Linux systems, the complete text of the GNU General Public
+License can be found in /usr/share/common-licenses/GPL and the Artistic
+Licence in /usr/share/common-licenses/Artistic.

Added: trunk/libsyntax-highlight-engine-simple-languages-perl/debian/make-copyright.pl
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsyntax-highlight-engine-simple-languages-perl/debian/make-copyright.pl?rev=36919&op=file
==============================================================================
--- trunk/libsyntax-highlight-engine-simple-languages-perl/debian/make-copyright.pl (added)
+++ trunk/libsyntax-highlight-engine-simple-languages-perl/debian/make-copyright.pl Sun May 31 12:38:59 2009
@@ -1,0 +1,22 @@
+#!/usr/bin/perl
+# Copyright © 2009, David Bremner <bremner at unb.ca>
+# This file may be distributed under the same terms as Perl: Artistic license or GPL 1+
+use strict;
+use Parse::DebControl;
+use File::Slurp;
+
+my $parser=new Parse::DebControl;
+my $pkgconf=$parser->parse_file("debian/packages.cfg",{useTieIxHash=>1,stripComments=>1}) || die "parser failed: $!";
+my $head=read_file('debian/copyright.head') || die "could not read head: $!";
+my $tail=read_file('debian/copyright.tail') || die "could not read tail: $!";
+
+open COPYRIGHT, ">debian/copyright" || die "could not open output: $!";
+print COPYRIGHT $head,"\n";
+
+for my $module (@{$pkgconf}){
+  print COPYRIGHT $parser->write_mem($module),"\n";
+}
+
+print COPYRIGHT "$tail";
+
+

Added: trunk/libsyntax-highlight-engine-simple-languages-perl/debian/packages.cfg
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsyntax-highlight-engine-simple-languages-perl/debian/packages.cfg?rev=36919&op=file
==============================================================================
--- trunk/libsyntax-highlight-engine-simple-languages-perl/debian/packages.cfg (added)
+++ trunk/libsyntax-highlight-engine-simple-languages-perl/debian/packages.cfg Sun May 31 12:38:59 2009
@@ -1,0 +1,19 @@
+# -*- Debian-control-mode -*-
+
+Module: Syntax-Highlight-Engine-Simple-Perl
+Author:		Sugama Keita <sugama at jamadam.com>
+Description:	syntax highlighting for Perl
+Watch:		http://search.cpan.org/CPAN/authors/id/J/JA/JAMADAM/Syntax-Highlight-Engine-Simple-Perl-([\d.]+).tar.gz
+Copyright: © 2008, Sugama Keita  <sugama at jamadam.com>. 
+License: Perl
+  This program is free software, you can redistribute it and/or modify it under
+  the same terms as Perl itself.
+
+Module: Syntax-Highlight-Engine-Simple-HTML
+Author:		Sugama Keita <sugama at jamadam.com>
+Description:	syntax highlighting for HTML
+Watch:		http://search.cpan.org/CPAN/authors/id/J/JA/JAMADAM/Syntax-Highlight-Engine-Simple-Perl-([\d.]+).tar.gz
+Copyright: © 2008, Sugama Keita  <sugama at jamadam.com>. 
+License: Perl
+  This program is free software, you can redistribute it and/or modify it under
+  the same terms as Perl itself.




More information about the Pkg-perl-cvs-commits mailing list