aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Setup
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-26 15:43:25 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-26 15:43:25 -0400
commitcab1ac75c91d8c351c41920a02e79484a34428e2 (patch)
treee6dba7a80af4fc3c5b12b70bf632faef6676419b /IkiWiki/Setup
parentb073359b18be7940d5138037a6423b8c45bfa39f (diff)
downloadikiwiki-cab1ac75c91d8c351c41920a02e79484a34428e2.tar
ikiwiki-cab1ac75c91d8c351c41920a02e79484a34428e2.tar.gz
refactor
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r--IkiWiki/Setup/Standard.pm20
1 files changed, 11 insertions, 9 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm
index 22bfc38a4..54819ae75 100644
--- a/IkiWiki/Setup/Standard.pm
+++ b/IkiWiki/Setup/Standard.pm
@@ -71,7 +71,8 @@ sub dumpvalues ($@) { #{{{
return @ret;
} #}}}
-sub gendump () { #{{{
+sub gendump ($) { #{{{
+ my $description=shift;
my %setup=(%config);
my @ret;
@@ -88,14 +89,15 @@ sub gendump () { #{{{
push @ret, "";
}
- unshift @ret, "#!/usr/bin/perl
-# Setup file for ikiwiki.
-# Passing this to ikiwiki --setup will make ikiwiki generate wrappers and
-# build the wiki.
-#
-# Remember to re-run ikiwiki --setup any time you edit this file.
-
-use IkiWiki::Setup::Standard {";
+ unshift @ret,
+ "#!/usr/bin/perl",
+ "# $description",
+ "#",
+ "# Passing this to ikiwiki --setup will make ikiwiki generate",
+ "# wrappers and build the wiki.",
+ "#",
+ "# Remember to re-run ikiwiki --setup any time you edit this file.",
+ "use IkiWiki::Setup::Standard {";
push @ret, "}";
return @ret;