Author: adam-guest
Date: 2008-04-22 05:44:57 +0000 (Tue, 22 Apr 2008)
New Revision: 1374

Modified:
   trunk/debian/changelog
   trunk/scripts/checkbashisms.pl
Log:
checkbashisms: When rebuilding the list of bashisms to check, ensure it is
based on whether the current file is a makefile, rather than whether the
previous file was. Thanks to Raphael Geissert for the brown paper bag.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-04-21 19:07:08 UTC (rev 1373)
+++ trunk/debian/changelog      2008-04-22 05:44:57 UTC (rev 1374)
@@ -1,6 +1,8 @@
 devscripts (2.10.27) UNRELEASED; urgency=low
 
-  * NOT RELEASED YET
+  * checkbashisms: When rebuilding the list of bashisms to check, ensure it is
+    based on whether the current file is a makefile, rather than whether the
+    previous file was. Thanks to Raphael Geissert for the brown paper bag.
 
  -- Adam D. Barratt <[EMAIL PROTECTED]>  Mon, 21 Apr 2008 20:06:13 +0100
 

Modified: trunk/scripts/checkbashisms.pl
===================================================================
--- trunk/scripts/checkbashisms.pl      2008-04-21 19:07:08 UTC (rev 1373)
+++ trunk/scripts/checkbashisms.pl      2008-04-22 05:44:57 UTC (rev 1374)
@@ -110,10 +110,10 @@
                my $interpreter = $1;
 
                if ($interpreter =~ m,/make$,) {
-                   init_hashes if !$makefile;
+                   init_hashes if !$makefile++;
                    $makefile = 1;
                } else {
-                   init_hashes if $makefile;
+                   init_hashes if $makefile--;
                    $makefile = 0;
                }
                next if $opt_force;



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to