summaryrefslogtreecommitdiff
path: root/IkiWiki/Setup
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-04 00:28:59 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-04 00:28:59 +0000
commit349ff86006b337b7f3cc9d0718c46e68c6f3a41e (patch)
tree2c7ddb37c977ee4a3133e7f75212c2fc2f9b0760 /IkiWiki/Setup
parentef6d8d7e2f66a5d8f7ef2b737f2ae3fb629dd9e5 (diff)
* Make ikiwiki --setup --refresh rebuild wrappers, so wrapper rebuild
will be automatically done on all upgrades.
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r--IkiWiki/Setup/Standard.pm23
1 files changed, 9 insertions, 14 deletions
diff --git a/IkiWiki/Setup/Standard.pm b/IkiWiki/Setup/Standard.pm
index d42ceffa0..25f038a06 100644
--- a/IkiWiki/Setup/Standard.pm
+++ b/IkiWiki/Setup/Standard.pm
@@ -31,21 +31,16 @@ sub setup_standard {
delete $setup{disable_plugins};
}
- if (! $config{refresh}) {
- debug("generating wrappers..");
- my @wrappers=@{$setup{wrappers}};
- delete $setup{wrappers};
- my %startconfig=(%config);
- foreach my $wrapper (@wrappers) {
- %config=(%startconfig, verbose => 0, %setup, %{$wrapper});
- checkconfig();
- gen_wrapper();
- }
- %config=(%startconfig);
- }
- else {
- delete $setup{wrappers};
+ debug("generating wrappers..");
+ my @wrappers=@{$setup{wrappers}};
+ delete $setup{wrappers};
+ my %startconfig=(%config);
+ foreach my $wrapper (@wrappers) {
+ %config=(%startconfig, verbose => 0, %setup, %{$wrapper});
+ checkconfig();
+ gen_wrapper();
}
+ %config=(%startconfig);
foreach my $c (keys %setup) {
if (defined $setup{$c}) {