* Add --post-commit option, which allows for the case of a split web server

and RCS server (or a push mirror). With this the RCS server can have a
  real post-commit hook that sshs back to the web server, and runs ikiwiki
  in post-commit mode to update the wiki.
master
joey 2007-03-29 18:27:00 +00:00
parent 6be1832ce0
commit 0302056332
3 changed files with 19 additions and 1 deletions

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
ikiwiki (1.49) UNRELEASED; urgency=low
* Add --post-commit option, which allows for the case of a split web server
and RCS server (or a push mirror). With this the RCS server can have a
real post-commit hook that sshs back to the web server, and runs ikiwiki
in post-commit mode to update the wiki.
-- Joey Hess <joeyh@debian.org> Thu, 29 Mar 2007 14:22:34 -0400
ikiwiki (1.48) unstable; urgency=low ikiwiki (1.48) unstable; urgency=low
* Fix link() PageSpecs to not just look at the raw link text, but at where * Fix link() PageSpecs to not just look at the raw link text, but at where

View File

@ -86,6 +86,14 @@ These options control the mode that ikiwiki operates in.
ikiwiki --setup ~/ikiwiki.setup --render foo.mdwn ikiwiki --setup ~/ikiwiki.setup --render foo.mdwn
* --post-commit
Run in post-commit mode, the same as if called by a [[post-commit]] hook.
This is probably only useful when using ikiwiki with a web server on one host
and a repository on another, to allow the repository's real post-commit
hook to ssh to the web server host and manually run ikiwiki to update
the web site.
* --version * --version
Print ikiwiki's version number. Print ikiwiki's version number.
@ -117,7 +125,7 @@ configuration options of their own.
Specify a mode to chmod the wrapper to after creating it. Specify a mode to chmod the wrapper to after creating it.
* --notify * --notify, --no-notify
Enable email notification of commits. This should be used when running Enable email notification of commits. This should be used when running
ikiwiki as a [[post-commit]] hook. ikiwiki as a [[post-commit]] hook.

View File

@ -25,6 +25,7 @@ sub getconfig () { #{{{
"syslog!" => \$config{syslog}, "syslog!" => \$config{syslog},
"rebuild!" => \$config{rebuild}, "rebuild!" => \$config{rebuild},
"refresh!" => \$config{refresh}, "refresh!" => \$config{refresh},
"post-commit" => \$config{post_commit},
"render=s" => \$config{render}, "render=s" => \$config{render},
"wrappers!" => \$config{wrappers}, "wrappers!" => \$config{wrappers},
"getctime" => \$config{getctime}, "getctime" => \$config{getctime},