]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki.in
link to stuff
[ikiwiki.git] / ikiwiki.in
index f2407b8d0e0d02c6c01e9770eed0199ba9094669..1a6d18a6089b8e98cb83433e1c5ada1a6f26c917 100755 (executable)
@@ -98,7 +98,7 @@ sub getconfig () { #{{{
                        "help|h" => sub { $SIG{__WARN__}=sub {}; die },
                ) || usage();
 
-               if (! $config{setup} && ! $config{render}) {
+               if (! $config{setup}) {
                        loadplugins();
                        if (@ARGV == 2) {
                                $config{srcdir} = possibly_foolish_untaint(shift @ARGV);
@@ -119,11 +119,6 @@ sub getconfig () { #{{{
                }
                delete $ENV{WRAPPED_OPTIONS};
 
-               if ($config{post_commit} && ! commit_hook_enabled()) {
-                       # optimisation for no-op post_commit 
-                       exit 0;
-               }
-
                loadplugins();
                checkconfig();
        }
@@ -161,13 +156,14 @@ sub main () { #{{{
                }
                
                # setup implies a wiki rebuild by default
-               if (! $config{refresh}) {
+               if (! $config{refresh} && ! $config{render}) {
                        $config{rebuild}=1;
                }
        }
 
        if ($config{dumpsetup}) {
                $config{srdir}=$config{destdir}="";
+               $config{syslog}=1 if $config{setupsyslog};
                require IkiWiki::Setup;
                IkiWiki::Setup::dump($config{dumpsetup});
        }