Package: devscripts
Version: 2.10.55
Severity: wishlist
Tags: patch

The patch:

- Add option --verbose, -v to show progress of multiple
  checked files. Cf GNU cp(1), ssh(1) etc. which use -v for verbose
- Move version option from -v to -V
- update *.1 manaula page to display options in
  alphabetical order. Short option first. Cf GNU cp(1) etc.

-- Package-specific info:

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
Not present

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
pn  dpkg-dev                      <none>     (no description available)
ii  libc6                         2.9-25     GNU C Library: Shared libraries
pn  perl                          <none>     (no description available)

Versions of packages devscripts recommends:
ii  at                    3.1.11-1           Delayed job execution and batch pr
ii  curl                  7.19.5-1.1         Get a file from an HTTP, HTTPS or 
ii  cvs                   1:1.12.13-12       Concurrent Versions System
ii  dctrl-tools           2.13.1             Command-line tools to process Debi
ii  debian-keyring [debia 2009.08.27         GnuPG (and obsolete PGP) keys of D
ii  dillo [www-browser]   2.0-1              Small and fast web browser
ii  dput                  0.9.5.1            Debian package upload tool
ii  elinks [www-browser]  0.12~pre5-1        advanced text-mode WWW browser
ii  epiphany-gecko [www-b 2.26.3-2           Intuitive GNOME web browser - Geck
ii  equivs                2.0.7-0.1          Circumvent Debian package dependen
pn  fakeroot              <none>             (no description available)
ii  git-core              1:1.6.5-1          fast, scalable, distributed revisi
ii  gnupg                 1.4.10-2           GNU privacy guard - a free PGP rep
ii  iceweasel [www-browse 3.0.14-1           lightweight web browser based on M
ii  konqueror [www-browse 4:4.3.1-1          KDE 4's advanced file manager, web
ii  libauthen-sasl-perl   2.13-1             Authen::SASL - SASL Authentication
ii  libcrypt-ssleay-perl  0.57-2             Support for https protocol in LWP
ii  libparse-debcontrol-p 2.005-2            Easy OO parsing of Debian control-
ii  libsoap-lite-perl     0.710.08-2         Client and server side SOAP implem
ii  libterm-size-perl     0.2-4+b1           Perl extension for retrieving term
pn  libtimedate-perl      <none>             (no description available)
ii  liburi-perl           1.37+dfsg-1        Manipulates and accesses URI strin
pn  libwww-perl           <none>             (no description available)
ii  libyaml-syck-perl     1.07-1             fast, lightweight YAML loader and 
ii  links [www-browser]   2.2-1+b1           Web browser running in text mode
ii  lintian               2.2.17             Debian package checker
ii  lsb-release           3.2-23             Linux Standard Base version report
ii  lynx-cur [www-browser 2.8.8dev.1-1       Text-mode WWW Browser with NLS sup
ii  lzma                  4.43-14            Compression method of 7z format in
ii  mailx                 1:20081101-2       Transitional package for mailx ren
ii  man-db                2.5.6-3            on-line manual pager
ii  mercurial             1.3.1-1            scalable distributed version contr
ii  midori [www-browser]  0.1.8-1            fast, lightweight graphical web br
ii  patch                 2.5.9-5            Apply a diff file to an original
ii  patchutils            0.3.1-2            Utilities to work with patches
ii  sensible-utils        0.0.1              Utilities for sensible alternative
pn  ssh-client            <none>             (no description available)
ii  strace                4.5.17+cvs080723-2 A system call tracer
ii  subversion            1.6.3dfsg-1        Advanced version control system
ii  unzip                 6.0-1              De-archiver for .zip files
ii  w3m [www-browser]     0.5.2-2.1          WWW browsable pager with excellent
ii  wdiff                 0.5-19             Compares two files word by word
ii  wget                  1.11.4-4           retrieves files from the web
ii  xemacs21-mule [www-br 21.4.22-2          highly customizable text editor --

Versions of packages devscripts suggests:
ii  build-essential               11.4       Informational list of build-essent
pn  cvs-buildpackage              <none>     (no description available)
pn  devscripts-el                 <none>     (no description available)
pn  gnuplot                       <none>     (no description available)
ii  libfile-desktopentry-perl     0.04-2     Perl module to handle freedesktop 
ii  libnet-smtp-ssl-perl          1.01-2     SSL support for Net::SMTP
ii  mutt                          1.5.20-4   text-based mailreader supporting M
ii  svn-buildpackage              0.6.29     helper programs to maintain Debian

-- no debconf information
>From cb2012ce79c2c2bf0c49f508e03ad4e292bc9f89 Mon Sep 17 00:00:00 2001
From: Jari Aalto <[email protected]>
Date: Fri, 13 Nov 2009 16:54:33 +0200
Subject: [PATCH] Add --verbose option

Signed-off-by: Jari Aalto <[email protected]>
---
 scripts/checkbashisms.1  |   25 ++++++++++++++-----------
 scripts/checkbashisms.pl |   10 ++++++++--
 2 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/scripts/checkbashisms.1 b/scripts/checkbashisms.1
index 199012e..4cc9ea7 100644
--- a/scripts/checkbashisms.1
+++ b/scripts/checkbashisms.1
@@ -22,30 +22,33 @@ default allows extensions permitted by Policy but may also 
provide
 options for stricter checking.
 .SH OPTIONS
 .TP
-.BR \-\-help ", " \-h
+.BR \-f ", " \-\-force
+Force each script to be checked, even if it would normally not be (for
+instance, it has a bash or non POSIX shell shebang or appears to be a
+shell wrapper).
+.TP
+.BR \-h ", " \-\-help
 Show a summary of options.
 .TP
-.BR \-\-newline ", " \-n
+.BR \-n ", " \-\-newline
 Check for "echo \-n" usage (non POSIX but required by Debian Policy 10.4.)
 .TP
-.BR \-\-posix ", " \-p
+.BR \-p ", " \-\-posix
 Check for issues which are non POSIX but required to be supported by Debian
 Policy 10.4 (implies \-n).
 .TP
-.BR \-\-force ", " \-f
-Force each script to be checked, even if it would normally not be (for 
-instance, it has a bash or non POSIX shell shebang or appears to be a 
-shell wrapper).
+.BR \-v ", " \-\-verbose
+Show informational messages.
 .TP
-.BR \-\-extra ", " \-x
+.BR \-V ", " \-\-version
+Show version and copyright information.
+.TP
+.BR \-x ", " \-\-extra
 Highlight lines which, whilst they do not contain bashisms, may be
 useful in determining whether a particular issue is a false positive
 which may be ignored.
 For example, the use of "$BASH_ENV" may be preceeded by checking
 whether "$BASH" is set.
-.TP
-.BR \-\-version ", " \-v
-Show version and copyright information.
 .SH "EXIT VALUES"
 The exit value will be 0 if no possible bashisms or other problems
 were detected.  Otherwise it will be the sum of the following error
diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index f40bfbc..0339b1a 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -49,7 +49,7 @@ GNU General Public License, version 2, or (at your option) 
any later version.
 EOF
 
 my ($opt_echo, $opt_force, $opt_extra, $opt_posix);
-my ($opt_help, $opt_version);
+my ($opt_help, $opt_version, $opt_verbose);
 
 ##
 ## handle command-line options
@@ -57,7 +57,8 @@ my ($opt_help, $opt_version);
 $opt_help = 1 if int(@ARGV) == 0;
 
 GetOptions("help|h" => \$opt_help,
-          "version|v" => \$opt_version,
+          "version|V" => \$opt_version,
+          "verbose|v" => \$opt_verbose,
           "newline|n" => \$opt_echo,
           "force|f" => \$opt_force,
           "extra|x" => \$opt_extra,
@@ -78,6 +79,11 @@ my $LEADIN = 
qr'(?:(?:^|[`&;(|{])\s*|(?:if|then|do|while|shell)\s+)';
 init_hashes;
 
 foreach my $filename (@ARGV) {
+
+    if ($opt_verbose) {
+       print "Checking: $filename\n";
+    }
+
     my $check_lines_count = -1;
 
     if (!$opt_force) {
-- 
1.6.5

Reply via email to