]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Setup/Standard.pm
ensure_committer: don't do anything if we have the environment variables
[git.ikiwiki.info.git] / IkiWiki / Setup / Standard.pm
index 33b578e12c0a2672c864b7ac4ccfbe2e33c2ad4e..ea7d763bbd26435c9dfb9462e1930f4cf7920b7a 100644 (file)
@@ -14,11 +14,14 @@ 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 {",
-       IkiWiki::Setup::commented_dump(\&dumpline),
+       IkiWiki::Setup::commented_dump(\&dumpline, "\t"),
        "}"
 }