]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - ikiwiki.in
web commit by hb: force reconstruction of the page
[www/ikiwiki.git] / ikiwiki.in
index 24b02bc415f9ad73908eef2c809d2efa1111400e..b8589bc622f85776cfee88bbd99a808fb8bd8608 100755 (executable)
@@ -25,10 +25,12 @@ sub getconfig () { #{{{
                        "syslog!" => \$config{syslog},
                        "rebuild!" => \$config{rebuild},
                        "refresh!" => \$config{refresh},
+                       "post-commit" => \$config{post_commit},
                        "render=s" => \$config{render},
                        "wrappers!" => \$config{wrappers},
                        "getctime" => \$config{getctime},
                        "wrappermode=i" => \$config{wrappermode},
+                       "numbacklinks=i" => \$config{numbacklinks},
                        "rcs=s" => \$config{rcs},
                        "no-rcs" => sub { $config{rcs}="" },
                        "cgi!" => \$config{cgi},
@@ -117,6 +119,12 @@ sub main () { #{{{
                require IkiWiki::Render;
                commandline_render();
        }
+       elsif ($config{post_commit} && ! commit_hook_enabled()) {
+               if ($config{notify}) {
+                       loadindex();
+                       rcs_notify();
+               }
+       }
        else {
                lockwiki();
                loadindex();