~ubuntu-branches/debian/sid/libconfig-model-dpkg-perl/sid

« back to all changes in this revision

Viewing changes to bin/scan-copyrights

  • Committer: Package Import Robot
  • Author(s): Dominique Dumont
  • Date: 2015-05-08 10:24:03 UTC
  • mfrom: (1.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150508102403-5a61zoujj1kqd7vw
Tags: 2.063
* Copyright scanner:
  * to cope with owner containing 'f00' (Closes: #783932)
  * handle ranges like 2010-12 or 2002-3 (Closes: #783928)
* Dpkg::Patch: fix handling of Subject body expressed as
  free form text below header.
* Updated list of supported arch in C::M::Dpkg::Dependency
  (Closes: #782995)
* control: added build-dep on libyaml-tiny-perl

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
 
 
3
use 5.20.0;
 
4
use warnings ;
 
5
 
 
6
use Dpkg::Copyright::Scanner qw/print_copyright/;
 
7
 
 
8
print_copyright;
 
9
 
 
10
__END__
 
11
 
 
12
=pod
 
13
 
 
14
=head1 NAME
 
15
 
 
16
 scan-copyrights - Scan source file and print lines for debian/copyright files
 
17
 
 
18
=head1 SYNOPSIS
 
19
 
 
20
  # in source package directory
 
21
  scan-copyrights > debian/copyright.new
 
22
  meld debian/copyright{,.new}
 
23
 
 
24
=head1 DESCRIPTION
 
25
 
 
26
This commands use C<license_check> command to scan license and copyright
 
27
information from source files. The output of license_check is parsed to
 
28
generate the Files information of C<debian/copyright> files according to
 
29
L<Debian specifications|https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/>
 
30
 
 
31
=head1 BUGS
 
32
 
 
33
Extracting license and copyright data from unstructured comments is not reliable.
 
34
User must check manually the files when no copyright info is found or when the
 
35
license is unknown.
 
36
 
 
37
=head1 Examples
 
38
 
 
39
In pan source directory:
 
40
 
 
41
 $ scan-copyright
 
42
 no info for ./uulib/fptools.h, check manually this file
 
43
 no info for ./uulib/fptools.c, check manually this file
 
44
 no info for ./uulib/uustring.h, check manually this file
 
45
 no info for ./uulib/crc32.h, check manually this file
 
46
 no info for ./pan/data/defgroup.h, check manually this file
 
47
 no info for ./pan/general/time-elapsed.h, check manually this file
 
48
 [ snip ]
 
49
 Files: *
 
50
 Copyright: 1994-2001, by Frank Pilhofer.
 
51
 License: GPL-2+
 
52
 
 
53
 Files: pan/*
 
54
 Copyright: 2002-2006, Charles Kerr <charles@rebelbase.com>
 
55
 License: GPL-2
 
56
 
 
57
 Files: pan/data/cert-store.cc
 
58
 Copyright: 2011, Heinrich Muller <henmull@src.gnome.org>
 
59
   2002-2006, Charles Kerr <charles@rebelbase.com>
 
60
 License: GPL-2
 
61
 
 
62
 Files: pan/data/cert-store.h
 
63
 Copyright: 2002-2006, Charles Kerr <charles@rebelbase.com>
 
64
   2011, Heinrich Muller <henmull@src.gnome.org>
 
65
 License: GPL-2
 
66
 [ snip ]
 
67
 
 
68
 
 
69
=head1 SUPPORT
 
70
 
 
71
For support, please contact the author.
 
72
 
 
73
=head1 SEE ALSO
 
74
 
 
75
L<license_check>, C<licensecheck2dep5> from C<cdbs> package
 
76
 
 
77
=head1 AUTHOR
 
78
 
 
79
Dominique Dumont <dod@debian.org>
 
80
 
 
81
=cut
 
82