}
} #}}}
+sub dump ($) { #{{{
+ my $file=IkiWiki::possibly_foolish_untaint(shift);
+
+ require IkiWiki::Setup::Standard;
+
+ open (OUT, ">", $file) || die "$file: $!";
+ print OUT "$_\n" foreach IkiWiki::Setup::Standard::gendump();
+ close OUT;
+}
+
1
return @ret;
} #}}}
-sub dump ($) { #{{{
- my $file=IkiWiki::possibly_foolish_untaint(shift);
-
+sub gendump () { #{{{
my %setup=(%config);
my @ret;
use IkiWiki::Setup::Standard {";
push @ret, "}";
- open (OUT, ">", $file) || die "$file: $!";
- print OUT "$_\n" foreach @ret;
- close OUT;
+ return @ret;
} #}}}
1
}
if ($config{dumpsetup}) {
- require IkiWiki::Setup::Standard;
- IkiWiki::Setup::Standard::dump($config{dumpsetup});
+ require IkiWiki::Setup;
+ IkiWiki::Setup::dump($config{dumpsetup});
}
elsif ($config{wrapper}) {
lockwiki();