diff options
author | Amitai Schlair <schmonz-web-ikiwiki@schmonz.com> | 2012-01-08 12:06:56 -0500 |
---|---|---|
committer | Amitai Schlair <schmonz-web-ikiwiki@schmonz.com> | 2012-01-08 12:06:56 -0500 |
commit | 2c3efbb3cebc6c45b16051683595aa02b701799e (patch) | |
tree | 76ee7012a64304ffe907a2c15138ca448ff8c72d | |
parent | fa99332893ed8ede41857806e2b92ed02ea1c9d8 (diff) | |
download | ikiwiki-2c3efbb3cebc6c45b16051683595aa02b701799e.tar ikiwiki-2c3efbb3cebc6c45b16051683595aa02b701799e.tar.gz |
When generating scripts, give them the interpreter we generated them with.
-rw-r--r-- | IkiWiki/Setup/Standard.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index c85069304..ea7d763bb 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -14,7 +14,10 @@ sub import { sub gendump ($@) { my $class=shift; - "#!/usr/bin/perl", + my $thisperl = eval q{use Config; $Config{perlpath}}; + error($@) if $@; + + "#!$thisperl", "#", (map { "# $_" } @_), "use IkiWiki::Setup::Standard {", |