- ::debug("generating wrappers..");
- my %startconfig=(%::config);
- foreach my $wrapper (@{$setup{wrappers}}) {
- %::config=(%startconfig, verbose => 0, %setup, %{$wrapper});
- ::checkoptions();
- ::gen_wrapper();
+ if (! $config{refresh}) {
+ debug("generating wrappers..");
+ my @wrappers=@{$setup{wrappers}};
+ delete $setup{wrappers};
+ my %startconfig=(%config);
+ foreach my $wrapper (@wrappers) {
+ %config=(%startconfig, verbose => 0, %setup, %{$wrapper});
+ checkconfig();
+ gen_wrapper();
+ }
+ %config=(%startconfig);
+ }
+ else {
+ delete $setup{wrappers};