When generating scripts, give them the interpreter we generated them with.

master
Amitai Schlair 2012-01-08 12:06:56 -05:00
parent fa99332893
commit 2c3efbb3ce
1 changed files with 4 additions and 1 deletions

View File

@ -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 {",