#! perl
# Copyright (C) 2007, The Perl Foundation.
# $Id: reconfigure.pl 21451 2007-09-21 09:33:44Z paultcochrane $
use 5.008_000;
use strict;
use warnings;
use lib 'lib';
use Parrot::Configure;
use Parrot::Configure::Options qw( process_options );
$| = 1; # $OUTPUT_AUTOFLUSH = 1;
my $args = process_options(
{
mode => 'reconfigure',
argv => [@ARGV],
}
);
exit(1) unless ( defined $args and defined $args->{step} );
my $conf = Parrot::Configure->new;
$conf->add_step( $args->{step} );
$conf->options->set( %{$args} );
# The result of slurp() is that the parameters in %Parrot::Config::PConfig
# are assigned to the {c} attribute in $conf.
$conf->data()->slurp();
# The result of slurp_temp() is that the parameters in
# %Parrot::Config::PConfig_Temp
# are assigned to the {c}{$_} attribute in $conf.
if ( $args->{step} =~ /gen::makefiles/ ) {
$conf->data()->slurp_temp();
}
$conf->run_single_step( $args->{step} );
print "\n";
exit(0);
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4:
syntax highlighted by Code2HTML, v. 0.9.1