[libconfig-model-dpkg-perl] 13/27: added scan_copyrights command

dod at debian.org dod at debian.org
Mon Jan 12 07:09:48 UTC 2015


This is an automated email from the git hooks/post-receive script.

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 8a25fa9be81614bad0d4149c8698953baa5d6d03
Author: Dominique Dumont <dod at debian.org>
Date:   Sat Dec 27 18:38:39 2014 +0100

    added scan_copyrights command
---
 bin/scan_copyrights | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 90 insertions(+)

diff --git a/bin/scan_copyrights b/bin/scan_copyrights
new file mode 100644
index 0000000..99f1540
--- /dev/null
+++ b/bin/scan_copyrights
@@ -0,0 +1,90 @@
+#!/usr/bin/perl
+
+use 5.20.0;
+use warnings ;
+
+use Dpkg::Copyright::Scanner qw/print_copyright/;
+
+print_copyright;
+
+__END__
+
+=pod
+
+=head1 SYNOPSIS
+
+  scan_copyrights
+
+=head1 DESCRIPTION
+
+This commands use C<license_check> command to scan license and copyright
+information from source files. The output of license_check is parsed to
+generate the Files information of C<debian/copyright> files according to
+L<Debian specifications|https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/>
+
+=head1 BUGS
+
+Extracting license and copyright data from unstructured comments is not reliable.
+User must check manually the files when no copyright info is found or when the
+license is unknown.
+
+=head1 Examples
+
+In pan source directory:
+
+ no info for ./uulib/fptools.h, check manually this file
+ no info for ./uulib/fptools.c, check manually this file
+ no info for ./uulib/uustring.h, check manually this file
+ no info for ./uulib/crc32.h, check manually this file
+ no info for ./pan/data/defgroup.h, check manually this file
+ no info for ./pan/general/time-elapsed.h, check manually this file
+ [ snip ]
+ Files: *
+ Copyright: 1994-2001, by Frank Pilhofer.
+ License: GPL-2+
+
+ Files: pan/*
+ Copyright: 2002-2006, Charles Kerr <charles at rebelbase.com>
+ License: GPL-2
+
+ Files: pan/data/cert-store.cc
+ Copyright: 2011, Heinrich Muller <henmull at src.gnome.org>
+   2002-2006, Charles Kerr <charles at rebelbase.com>
+ License: GPL-2
+
+ Files: pan/data/cert-store.h
+ Copyright: 2002-2006, Charles Kerr <charles at rebelbase.com>
+   2011, Heinrich Muller <henmull at src.gnome.org>
+ License: GPL-2
+ [ snip ]
+
+
+=head1 SUPPORT
+
+For support, please check the following resources:
+
+=over
+
+=item *
+
+The config-model users mailing list:
+
+ config-model-users at lists.sourceforge.net
+
+=item *
+
+The config-model wiki: L<http://github.com/dod38fr/config-model/wiki>
+
+=back
+
+
+=head1 SEE ALSO
+
+L<license_check>, C<licensecheck2dep5> from C<cdbs> package
+
+=head1 AUTHOR
+
+Dominique Dumont <dod at debian.org>
+
+=cut
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git



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