$NetBSD: patch-ab,v 1.7 2011/09/05 22:07:28 schmonz Exp $

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

--- IkiWiki/Setup/Standard.pm.orig	2011-07-29 10:59:11.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 {",
