aboutsummaryrefslogtreecommitdiff
path: root/ikiwiki.in
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-07-24 17:33:59 -0400
committerJoey Hess <joey@kitenet.net>2010-07-24 17:33:59 -0400
commit0aa621a833930795fd10c5a701b33b6a1705d03f (patch)
tree7da34800c93d338dfe57353ecbc9e1698e46b6e7 /ikiwiki.in
parenta7454c0e3220153a1f770df796e45ef1c1ee95ae (diff)
downloadikiwiki-0aa621a833930795fd10c5a701b33b6a1705d03f.tar
ikiwiki-0aa621a833930795fd10c5a701b33b6a1705d03f.tar.gz
move wrapper building loop into Wrapper.pm
Diffstat (limited to 'ikiwiki.in')
-rwxr-xr-xikiwiki.in18
1 files changed, 1 insertions, 17 deletions
diff --git a/ikiwiki.in b/ikiwiki.in
index aa3337938..bcda2469b 100755
--- a/ikiwiki.in
+++ b/ikiwiki.in
@@ -163,24 +163,8 @@ sub main () {
! $config{clean} &&
((! $config{refresh} && ! $config{post_commit})
|| $config{genwrappers})) {
- debug(gettext("generating wrappers.."));
require IkiWiki::Wrapper;
- 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);
+ gen_wrappers();
}
# setup implies a wiki rebuild by default