X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/5bc73d7facbea81ae533777affaffbe3d7476c0f..96b38807256362f4cf0738ab64d169210ac3aa11:/pm_filter?ds=inline diff --git a/pm_filter b/pm_filter index f61e7810b..98cb5bd9e 100755 --- 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{^(#!.*perl.*?) -T$}) { + $_=qq{$1\n}; +} +elsif (/^\$ENV{PATH}="(.*)";/) { + $_="\$ENV{PATH}=\"$1:$prefix/bin\";\n"; +}