~ubuntu-branches/ubuntu/precise/devscripts/precise

« back to all changes in this revision

Viewing changes to scripts/licensecheck.pl

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2011-05-25 09:46:30 UTC
  • Revision ID: james.westby@ubuntu.com-20110525094630-gsd820t94ib5u6kn
Tags: 2.11.0ubuntu1
* Merge from Debian unstable; remaining changes:
  - Demote Recommends to Suggests:
    + libcrypt-ssleay-perl: only needed for a corner case (uscan on SSL
      download sites), wasn't installed by default in previous releases
      either, and seems quite dead upstream; universe only.
    + debian-{keyring,maintainers}: not useful enough in Ubuntu; universe
      only.
    + equivs: too much of a hack to install by default; universe only.
    + libyaml-syck-perl: transition-check is fairly Debian-specific.
  - scripts/debchange.{pl,1}:
    + Adjust --security template for Ubuntu.
    + Add -U/--upstream flag that forces original "just increment
      the end" behaviour; Ubuntu is upstream for some pieces of software.
    + Add --distributor= and DEBCHANGE_DISTRIBUTOR to override lsb_release
      output.
    + Default to "oneiric" as distribution.
    + Add "ubuntu1" to version string for new versions, with tweaks for
      special cases.
    + Add -R/--rebuild flag for Ubuntu's no-change rebuilds.
    + Don't use the last distribution in debian/changelog when doing
      "dch -r" on Ubuntu. "Just because it was last uploaded to jaunty
      doesn't mean that's the right thing to do now." Thanks to Colin
      Watson. (LP: #429288)
  - Add test/debchange.pl, test/Makefile: debchange test suite.
  - Rename XS-Vcs-* to XS-Debian-Vcs-*.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 
53
53
=item B<-l=>I<N>, B<--lines=>I<N>
54
54
 
55
 
Specify the number of lines of each file's header which should be parsed 
 
55
Specify the number of lines of each file's header which should be parsed
56
56
for license information. (Default is 60).
57
57
 
58
58
=item B<-i=>I<regex>, B<--ignore=>I<regex>
59
59
 
60
 
When processing the list of files and directories, the regular 
61
 
expression specified by this option will be used to indicate those which 
62
 
should not be considered (e.g. backup files, VCS metadata). 
 
60
When processing the list of files and directories, the regular
 
61
expression specified by this option will be used to indicate those which
 
62
should not be considered (e.g. backup files, VCS metadata).
63
63
 
64
64
=item B<-r>, B<--recursive>
65
65
 
66
 
Specify that the contents of directories should be added 
 
66
Specify that the contents of directories should be added
67
67
recursively.
68
68
 
69
69
=item B<-c=>I<regex>, B<--check=>I<regex>
70
70
 
71
 
Specify a pattern against which filenames will be matched in order to 
 
71
Specify a pattern against which filenames will be matched in order to
72
72
decide which files to check the license of.
73
73
 
74
74
The default includes common source files.
110
110
 
111
111
=head1 LICENSE
112
112
 
113
 
This code is copyright by Adam D. Barratt <I<adam@adam-barratt.org.uk>>, 
114
 
all rights reserved; based on a script of the same name from the KDE 
 
113
This code is copyright by Adam D. Barratt <I<adam@adam-barratt.org.uk>>,
 
114
all rights reserved; based on a script of the same name from the KDE
115
115
SDK, which is copyright by <I<dfaure@kde.org>>.
116
116
This program comes with ABSOLUTELY NO WARRANTY.
117
 
You are free to redistribute this code under the terms of the GNU 
 
117
You are free to redistribute this code under the terms of the GNU
118
118
General Public License, version 2 or later.
119
119
 
120
120
=head1 AUTHOR
376
376
 
377
377
This program comes with ABSOLUTELY NO WARRANTY.
378
378
You are free to redistribute this code under the terms of the
379
 
GNU General Public License, version 2, or (at your option) any 
 
379
GNU General Public License, version 2, or (at your option) any
380
380
later version.
381
381
EOF
382
382
}
413
413
    if ($licensetext =~ /is free software.? you can redistribute it and\/or modify it under the terms of the (GNU (Library|Lesser) General Public License|LGPL)/i) {
414
414
        $license = "LGPL$gplver$extrainfo $license";
415
415
    }
416
 
    
 
416
 
417
417
    if ($licensetext =~ /is free software.? you can redistribute it and\/or modify it under the terms of the (GNU Affero General Public License|AGPL)/i) {
418
418
        $license = "AGPL$gplver$extrainfo $license";
419
419
    }