]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki.in
Consistency nitpicking in docs: lowercase in attachment and po lists
[ikiwiki.git] / ikiwiki.in
index 32a24af84a6177d0477bc1914afcddd41b2627cc..4e9b812f852cb4b9805c51d7af6c0d0576d8a976 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -T
+#!/usr/bin/perl
 $ENV{PATH}="/usr/local/bin:/usr/bin:/bin";
 delete @ENV{qw{IFS CDPATH ENV BASH_ENV}};
 
@@ -135,7 +135,8 @@ sub main () {
 
                if (@{$config{wrappers}} && 
                    ! $config{render} && ! $config{dumpsetup} &&
-                   (! $config{refresh} || $config{genwrappers})) {
+                   ((! $config{refresh} && ! $config{post_commit})
+                    || $config{genwrappers})) {
                        debug(gettext("generating wrappers.."));
                        require IkiWiki::Wrapper;
                        my %origconfig=(%config);
@@ -157,7 +158,8 @@ sub main () {
                }
                
                # setup implies a wiki rebuild by default
-               if (! $config{refresh} && ! $config{render}) {
+               if (! $config{refresh} && ! $config{render} &&
+                   ! $config{post_commit}) {
                        $config{rebuild}=1;
                }
        }