diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-27 01:50:43 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-27 01:50:43 -0400 |
commit | 3d139e43126f2bd18b28feb187425fb22a7dd929 (patch) | |
tree | 5e85b388ce73c85335177fd5c6bdd069f2554f74 /IkiWiki/Setup | |
parent | f28b57526ce7a4fe1337dda07533862d918f59b6 (diff) |
rcs hook setup for the two I know
Diffstat (limited to 'IkiWiki/Setup')
-rw-r--r-- | IkiWiki/Setup/Automator.pm | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/IkiWiki/Setup/Automator.pm b/IkiWiki/Setup/Automator.pm index 8cf158db2..060a8be56 100644 --- a/IkiWiki/Setup/Automator.pm +++ b/IkiWiki/Setup/Automator.pm @@ -56,7 +56,23 @@ sub import (@) { #{{{ "--url", $setup{url}, "--cgiurl", $setup{cgiurl} ); - push @params, "--rcs", $setup{rcs} if $setup{rcs}; + if ($setup{rcs}) { + push @params, "--rcs", $setup{rcs}; + if ($setup{rcs} eq 'git') { + push @params, "--set", "git_wrapper=". + $setup{repository}."/hooks/post-update"; + } + elsif ($setup{rcs} eq 'svn') { + push @params, "--set", "svn_wrapper=". + $setup{repository}."/hooks/post-commit"; + } + elsif ($setup{rcs} eq 'bzr') { + # TODO + } + elsif ($setup{rcs} eq 'mercurial') { + # TODO + } + } if (exists $setup{add_plugins}) { foreach my $plugin (@{$setup{add_plugins}}) { push @params, "--plugin", $plugin; |