When generating scripts, give them the interpreter we generated them with.
parent
fa99332893
commit
2c3efbb3ce
|
@ -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 {",
|
||||
|
|
Loading…
Reference in New Issue