aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/cvs.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-09-10 16:18:27 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-09-10 16:18:27 -0400
commit1365ebf12f09be7bd79950b2a01ef14f2b8c796a (patch)
tree58ad8423379a7cf487988d655dd49f883b8a4c65 /IkiWiki/Plugin/cvs.pm
parent93cd30bc0a882037ae2c65c8d6d3a9dc3d09c899 (diff)
parent8063bc3402bb1beab8ed85ecc25d19204e892060 (diff)
downloadikiwiki-1365ebf12f09be7bd79950b2a01ef14f2b8c796a.tar
ikiwiki-1365ebf12f09be7bd79950b2a01ef14f2b8c796a.tar.gz
Merge commit 'schmonz/master' into cvs
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 939e89270..dad28881d 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;
}