]> sipb.mit.edu Git - ikiwiki.git/blobdiff - ikiwiki.in
web commit by http://ethan.betacantrips.com/: like this
[ikiwiki.git] / ikiwiki.in
index c762712ba3caf1e7a62d44befef0dbb7b39c113b..fd864e0d82a78a96c5377fc8b18fc26edc7d722c 100755 (executable)
@@ -25,13 +25,15 @@ sub getconfig () { #{{{
                        "syslog!" => \$config{syslog},
                        "rebuild!" => \$config{rebuild},
                        "refresh!" => \$config{refresh},
+                       "post-commit" => \$config{post_commit},
                        "render=s" => \$config{render},
                        "wrappers!" => \$config{wrappers},
+                       "usedirs!" => \$config{usedirs},
                        "getctime" => \$config{getctime},
                        "wrappermode=i" => \$config{wrappermode},
+                       "numbacklinks=i" => \$config{numbacklinks},
                        "rcs=s" => \$config{rcs},
                        "no-rcs" => sub { $config{rcs}="" },
-                       "anonok!" => \$config{anonok},
                        "cgi!" => \$config{cgi},
                        "discussion!" => \$config{discussion},
                        "w3mmode!" => \$config{w3mmode},
@@ -46,6 +48,9 @@ sub getconfig () { #{{{
                        "timeformat=s" => \$config{timeformat},
                        "sslcookie!" => \$config{sslcookie},
                        "httpauth!" => \$config{httpauth},
+                       "userdir=s" => \$config{userdir},
+                       "htmlext=s" => \$config{htmlext},
+                       "libdir" => \$config{libdir},
                        "exclude=s@" => sub {
                                push @{$config{wiki_file_prune_regexps}}, $_[1];
                        },
@@ -117,6 +122,12 @@ sub main () { #{{{
                require IkiWiki::Render;
                commandline_render();
        }
+       elsif ($config{post_commit} && ! commit_hook_enabled()) {
+               if ($config{notify}) {
+                       loadindex();
+                       rcs_notify();
+               }
+       }
        else {
                lockwiki();
                loadindex();