[devscripts] 02/02: licensecheck: --text option is deprecated

dod at debian.org dod at debian.org
Wed Nov 11 19:45:40 UTC 2015


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

dod pushed a commit to branch master
in repository devscripts.

commit 82b85b95af69aca18247f4a94eeb11d853131c20
Author: Dominique Dumont <dod at debian.org>
Date:   Wed Nov 11 20:45:06 2015 +0100

    licensecheck: --text option is deprecated
    
    This option was a bad work-around. See #803724 for details
---
 debian/changelog        |  1 +
 scripts/licensecheck.pl | 14 +++++++-------
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5204312..08d8870 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ devscripts (2.15.10) UNRELEASED; urgency=medium
   [ Dominique Dumont ]
   * licensecheck: parse file matching -c regex whatever its mime
     type (Closes: #803724)
+  * licensecheck: --text option is deprecated
 
  -- Benjamin Drung <bdrung at debian.org>  Fri, 23 Oct 2015 23:54:58 +0200
 
diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
index 798535f..4f34eb2 100755
--- a/scripts/licensecheck.pl
+++ b/scripts/licensecheck.pl
@@ -72,13 +72,9 @@ recursively.
 =item B<-c=>I<regex>, B<--check=>I<regex>
 
 Specify a pattern against which filenames will be matched in order to
-decide which files to check the license of.
-
-=item B<-t>, B<--text>
-
-By default, all files are parsed, including binary files. This option
-limits the parsed files to mime type C<text/*> and C<application/xml>.
-The mime type is given by C<file> command.
+decide which files to check the license of. By default, only files
+with mime type C<text/*> and C<application/xml> are parsed. The mime
+type is given by C<file> command.
 
 =item B<--copyright>
 
@@ -296,6 +292,10 @@ if ($OPT{'noconf'}) {
 if ($OPT{'help'}) { help(); exit 0; }
 if ($OPT{'version'}) { version(); exit 0; }
 
+if ($OPT{text}) {
+    warn "$0 warning: option -text is deprecated\n"; # remove -text end 2015
+}
+
 die "Usage: $progname [options] filelist\nRun $progname --help for more details\n" unless @ARGV;
 
 $OPT{'lines'} = $def_lines if not defined $OPT{'lines'};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list