- my %origconfig=(%config);
- foreach my $wrapper (@{$config{wrappers}}) {
- %config=(%origconfig, %{$wrapper});
- $config{verbose}=$config{setupverbose}
- if exists $config{setupverbose};
- $config{syslog}=$config{setupsyslog}
- if exists $config{setupsyslog};
- delete @config{qw(setupsyslog setupverbose wrappers genwrappers rebuild)};
- checkconfig();
- if (! $config{cgi} && ! $config{post_commit} &&
- ! $config{test_receive}) {
- $config{post_commit}=1;
- }
- gen_wrapper();
- }
- %config=(%origconfig);