]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - pm_filter
git: Put -- before the filename when calling git rev-list to avoid warning message...
[git.ikiwiki.info.git] / pm_filter
index a80ce04f0e7b015540df972a9356805a13b8323d..98cb5bd9ef930f5bb55d4efd4b27ea015fa987ae 100755 (executable)
--- a/pm_filter
+++ b/pm_filter
@@ -20,6 +20,9 @@ elsif (/^use lib/) {
                $_="use lib '$libdir';\n";
        }
 }
-elsif ($. == 1 && $ENV{NOTAINT} && m{^(#!/usr/bin/perl) -T$}) {
+elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!.*perl.*?) -T$}) {
        $_=qq{$1\n};
 }
+elsif (/^\$ENV{PATH}="(.*)";/) {
+       $_="\$ENV{PATH}=\"$1:$prefix/bin\";\n";
+}