From 8063bc3402bb1beab8ed85ecc25d19204e892060 Mon Sep 17 00:00:00 2001 From: Amitai Schlair Date: Thu, 10 Sep 2009 15:12:45 -0400 Subject: Catch up to the new genwrapper hook. --- IkiWiki/Wrapper.pm | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'IkiWiki/Wrapper.pm') diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index 57896e262..cf85738d6 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -45,9 +45,6 @@ EOF my @wrapper_hooks; run_hooks(genwrapper => sub { push @wrapper_hooks, shift->() }); - my $check_args=" return 0;"; - run_hooks(wrapperargcheck => sub { $check_args = shift->(); }); - my $check_commit_hook=""; my $pre_exec=""; if ($config{post_commit}) { @@ -120,16 +117,9 @@ addenv(char *var, char *val) { newenviron[i++]=s; } -int checkargs(int argc, char **argv) { -$check_args -} - int main (int argc, char **argv) { char *s; - if (!checkargs(argc, argv)) - exit(0); - $check_commit_hook @wrapper_hooks $envsave -- cgit v1.2.3