]> sipb.mit.edu Git - ikiwiki.git/blobdiff - pm_filter
response
[ikiwiki.git] / pm_filter
index f61e7810b686cc8a1995134b9f8ed75ded158044..a66cf215470f330f7bf9fb7c7b1a808472fea206 100755 (executable)
--- a/pm_filter
+++ b/pm_filter
@@ -20,3 +20,9 @@ elsif (/^use lib/) {
                $_="use lib '$libdir';\n";
        }
 }
+elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!/usr/bin/perl) -T$}) {
+       $_=qq{$1\n};
+}
+if (/^\$ENV{PATH}="(.*)";/) {
+       $_="\$ENV{PATH}=\"$1:$prefix/bin\";\n";
+}