]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Setup/Standard.pm
* Allow preprocessor directives to contain python-like triple-quoted
[git.ikiwiki.info.git] / IkiWiki / Setup / Standard.pm
index 4082ca7af664e0662325c6bb0f408372789e35f4..b76c87b8e9ccf4b17c83c8e32dd88821e98016d6 100644 (file)
@@ -30,17 +30,22 @@ sub setup_standard {
                }
                delete $setup{disable_plugins};
        }
                }
                delete $setup{disable_plugins};
        }
+       if (exists $setup{exclude}) {
+               $config{wiki_file_prune_regexp}=qr/$config{wiki_file_prune_regexp}|$setup{exclude}/;
+       }
 
 
-       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();
+       if (! $config{refresh} || $config{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);
        }
        }
-       %config=(%startconfig);
        
        foreach my $c (keys %setup) {
                if (defined $setup{$c}) {
        
        foreach my $c (keys %setup) {
                if (defined $setup{$c}) {