aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Setup
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-01-30 15:20:54 -0400
committerJoey Hess <joey@kitenet.net>2012-01-30 15:20:54 -0400
commit545bf43670d4c31a260c82c4d99aa878679a8340 (patch)
treefd459f58209baa8afad252c60110b6d10db7b5b2 /IkiWiki/Setup
parent02898461f24530159b37fcae22a8b79c86b12091 (diff)
parent1dc565c9ae1e2bd94f4d3bbb9e798a1eb0f20f79 (diff)
downloadikiwiki-545bf43670d4c31a260c82c4d99aa878679a8340.tar
ikiwiki-545bf43670d4c31a260c82c4d99aa878679a8340.tar.gz
Merge remote-tracking branch 'schmonz/portability'
Diffstat (limited to 'IkiWiki/Setup')
-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 {",