aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2012-01-08 12:06:56 -0500
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2012-01-08 12:06:56 -0500
commit2c3efbb3cebc6c45b16051683595aa02b701799e (patch)
tree76ee7012a64304ffe907a2c15138ca448ff8c72d
parentfa99332893ed8ede41857806e2b92ed02ea1c9d8 (diff)
downloadikiwiki-2c3efbb3cebc6c45b16051683595aa02b701799e.tar
ikiwiki-2c3efbb3cebc6c45b16051683595aa02b701799e.tar.gz
When generating scripts, give them the interpreter we generated them with.
-rw-r--r--IkiWiki/Setup/Standard.pm5
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 {",