The following commit has been merged in the master branch:
commit a40817bf80d80b6f44e24b4acafc7e2c16900b64
Author: Raphael Geissert <[email protected]>
Date:   Fri May 14 23:42:06 2010 -0500

    checkbashisms: fix some false positives when checking makefiles
    
    Signed-off-by: Raphael Geissert <[email protected]>
    Signed-off-by: James Vega <[email protected]>

diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index ecb17f2..81c1d98 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -204,6 +204,8 @@ foreach my $filename (@ARGV) {
 
            last if m%^\s*(override|export)?\s*SHELL\s*:?=\s*(/bin/)?bash\s*%;
 
+           # Remove "simple" target names
+           s/^[\w%.-]+(?:\s+[\w%.-]+)*::?//;
            s/^\t//;
            s/(?<!\$)\$\((\w+)\)/\${$1}/g;
            s/(\$){2}/$1/g;

-- 
Git repository for devscripts


-- 
To unsubscribe, send mail to [email protected].

Reply via email to