blob: e90fdd0a9cc0a03d1ca95d699baf2a66832f2b53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ab,v 1.6 2011/06/04 15:23:36 schmonz Exp $
When generating scripts, give them the interpreter we generated them with.
--- IkiWiki/Setup/Standard.pm.orig 2011-05-30 18:25:10.000000000 +0000
+++ 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 {",
|