Deal with different paths to perl when removing -T flag.
parent
4723d5f9f1
commit
dbb5d11196
|
@ -4,6 +4,7 @@ ikiwiki (2.45) UNRELEASED; urgency=low
|
||||||
time. This allows the toc to be displayed when previewing an edit. It also
|
time. This allows the toc to be displayed when previewing an edit. It also
|
||||||
avoids headers in the page template from showing up in the toc.
|
avoids headers in the page template from showing up in the toc.
|
||||||
* Add PREFIX/bin to the hardcoded PATH within ikiwiki.
|
* Add PREFIX/bin to the hardcoded PATH within ikiwiki.
|
||||||
|
* Deal with different paths to perl when removing -T flag.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Sat, 26 Apr 2008 15:09:36 -0400
|
-- Joey Hess <joeyh@debian.org> Sat, 26 Apr 2008 15:09:36 -0400
|
||||||
|
|
||||||
|
|
|
@ -26,3 +26,5 @@ line 1.
|
||||||
>> over-broad. --[[Joey]]
|
>> over-broad. --[[Joey]]
|
||||||
|
|
||||||
>>> Yes, being more precise should be fine. Note that some may have bin/perl5 or bin/perl5.8.8 for example, so please consider optional number, like ^(#!/.*/perl[0-9]*.*) -T$ or something like that.
|
>>> Yes, being more precise should be fine. Note that some may have bin/perl5 or bin/perl5.8.8 for example, so please consider optional number, like ^(#!/.*/perl[0-9]*.*) -T$ or something like that.
|
||||||
|
|
||||||
|
[[done]]
|
||||||
|
|
|
@ -20,7 +20,7 @@ elsif (/^use lib/) {
|
||||||
$_="use lib '$libdir';\n";
|
$_="use lib '$libdir';\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!/usr/bin/perl) -T$}) {
|
elsif ($. == 1 && ($ENV{NOTAINT} || ! exists $ENV{NOTAINT}) && m{^(#!.*perl.*?) -T$}) {
|
||||||
$_=qq{$1\n};
|
$_=qq{$1\n};
|
||||||
}
|
}
|
||||||
if (/^\$ENV{PATH}="(.*)";/) {
|
if (/^\$ENV{PATH}="(.*)";/) {
|
||||||
|
|
Loading…
Reference in New Issue