diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-23 04:01:02 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-23 04:01:02 +0000 |
commit | e4d9da55d923cdd78cd07959de44edf17a9a5fe5 (patch) | |
tree | 3ed1d57fe719ef886f3772344109ddabe4cb41e6 /IkiWiki/Setup | |
parent | 0b1828f694dde648c63a192a132308348438379a (diff) |
At Branden's request, clean up the hardcoded ".ikiwiki" everywhere, and add
checkoptions() that can be used to set defaults for this and other options
based on existing options.
Also involved some cleanups to how gen_wrapper is used.
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r-- | IkiWiki/Setup/Standard.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm index 68f43b408..76213b11a 100644 --- a/IkiWiki/Setup/Standard.pm +++ b/IkiWiki/Setup/Standard.pm @@ -14,7 +14,9 @@ sub import { ::debug("generating wrappers.."); foreach my $wrapper (@{$setup{wrappers}}) { - ::gen_wrapper(%::config, verbose => 0, %setup, %{$wrapper}); + %::config=(%::config, verbose => 0, %setup, %{$wrapper}); + ::checkoptions(); + ::gen_wrapper(); } ::debug("rebuilding wiki.."); @@ -23,6 +25,7 @@ sub import { if defined $setup{$c} && ! ref $setup{$c}; } $::config{rebuild}=1; + ::checkoptions(); ::refresh(); ::debug("done"); |