- if (exists $setup{add_plugins}) {
- foreach my $plugin (@{$setup{add_plugins}}) {
- push @params, "--plugin", $plugin;
- }
- }
- if (exists $setup{disable_plugins}) {
- foreach my $plugin (@{$setup{disable_plugins}}) {
- push @params, "--disable-plugin", $plugin;
- }
- }
- foreach my $key (keys %setup) {
- next if $key =~ /^(disable_plugins|add_plugins|setupfile|wikiname|url|cgiurl||srcdir|destdir|repository)$/;
- push @params, "--set", "$key=$setup{$key}";
- }
- if (system("ikiwiki", @params, $setup{srcdir}, $setup{destdir}) != 0) {
- die "failed: ikiwiki @params";
- }