3 # Copyright (C) 2007, Parrot Foundation.
10 use Parrot
::Configure
;
11 use Parrot
::Configure
::Options
qw( process_options );
13 $| = 1; # $OUTPUT_AUTOFLUSH = 1;
15 my $args = process_options
(
17 mode
=> 'reconfigure',
21 exit(1) unless ( defined $args and defined $args->{step
} );
23 my $conf = Parrot
::Configure
->new;
24 $conf->add_step( $args->{step
} );
25 $conf->options->set( %{$args} );
27 # The result of get_PConfig() is that the parameters in %Parrot::Config::PConfig
28 # are assigned to the {c} attribute in $conf.
29 $conf->data()->get_PConfig();
31 # The result of get_PConfig_Temp() is that the parameters in
32 # %Parrot::Config::PConfig_Temp
33 # are assigned to the {c}{$_} attribute in $conf.
34 if ( $args->{step
} =~ /gen::makefiles/ ) {
35 $conf->data()->get_PConfig_Temp();
37 $conf->run_single_step( $args->{step
} );
43 # cperl-indent-level: 4
46 # vim: expandtab shiftwidth=4: