aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/cvs.pm
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-09-10 15:12:45 -0400
committerAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-09-10 15:12:45 -0400
commit8063bc3402bb1beab8ed85ecc25d19204e892060 (patch)
treeff2276ee1df0f43caab842ea0539245e3a91465e /IkiWiki/Plugin/cvs.pm
parent460b1a0debf85f7c54c1dd7d8b8e483587041d44 (diff)
downloadikiwiki-8063bc3402bb1beab8ed85ecc25d19204e892060.tar
ikiwiki-8063bc3402bb1beab8ed85ecc25d19204e892060.tar.gz
Catch up to the new genwrapper hook.
Diffstat (limited to 'IkiWiki/Plugin/cvs.pm')
-rw-r--r--IkiWiki/Plugin/cvs.pm15
1 files changed, 8 insertions, 7 deletions
diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm
index e926425f2..3ce22203b 100644
--- a/IkiWiki/Plugin/cvs.pm
+++ b/IkiWiki/Plugin/cvs.pm
@@ -8,7 +8,7 @@ use IkiWiki;
use File::chdir;
sub import {
- hook(type => "wrapperargcheck", id => "cvs", call => \&wrapperargcheck);
+ hook(type => "genwrapper", id => "cvs", call => \&genwrapper);
hook(type => "checkconfig", id => "cvs", call => \&checkconfig);
hook(type => "getsetup", id => "cvs", call => \&getsetup);
hook(type => "rcs", id => "rcs_update", call => \&rcs_update);
@@ -23,13 +23,14 @@ sub import {
hook(type => "rcs", id => "rcs_getctime", call => \&rcs_getctime);
}
-sub wrapperargcheck () {
+sub genwrapper () {
my $check_args=<<"EOF";
- int j;
- for (j = 1; j < argc; j++)
- if (strstr(argv[j], "New directory") != NULL)
- return 0;
- return 1;
+ {
+ int j;
+ for (j = 1; j < argc; j++)
+ if (strstr(argv[j], "New directory") != NULL)
+ exit(0);
+ }
EOF
return $check_args;
}