<commit_before>#! perl

# Copyright (C) 2009, Parrot Foundation.
# $Id$

use 5.008;
use strict;
use warnings;
use FindBin qw($Bin);
use lib "$Bin/../lib";    # install location
use lib "$Bin/../../lib"; # build location
use Parrot::Configure;
use Parrot::Configure::Options qw( process_options );

$| = 1;    # $OUTPUT_AUTOFLUSH = 1;

my $args = process_options(
    {
        step              => 'gen::makefiles',
        mode              => 'reconfigure',
        file_type         => 'makefile',
        conditioned_lines => 1,
        replace_slashes   => 1,
        expand_gmake_syntax => 1,
    }
);
exit(1) unless ( defined $args );

my $template = $ARGV[0];
my $makefile = $ARGV[1];

my $conf = Parrot::Configure->new();
$conf->options->set( %{$args} );
$conf->data()->get_PConfig(); #load configuration data
$conf->genfile( $template => $makefile);

exit(0);

# Local Variables:
#   mode: cperl
#   cperl-indent-level: 4
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4:<commit_msg>[tools] fix previous commit r37352<commit_after>#! perl

# Copyright (C) 2009, Parrot Foundation.
# $Id$

use 5.008;
use strict;
use warnings;
use FindBin qw($Bin);
use lib "$Bin/../lib";    # install location
use lib "$Bin/../../lib"; # build location
use Parrot::Configure;
use Parrot::Configure::Options qw( process_options );

$| = 1;    # $OUTPUT_AUTOFLUSH = 1;

my $args = process_options(
    {
        step              => 'gen::makefiles',
        mode              => 'reconfigure',
    }
);
exit(1) unless ( defined $args );

my $template = $ARGV[0];
my $makefile = $ARGV[1];

my $conf = Parrot::Configure->new();
$conf->options->set( %{$args} );
$conf->data()->get_PConfig(); #load configuration data
$conf->genfile(
    $template           => $makefile,
    file_type           => 'makefile',
    expand_gmake_syntax => 1,
);

exit(0);

# Local Variables:
#   mode: cperl
#   cperl-indent-level: 4
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4:
{'fraction_non_alphanumeric': 0.17402333840690004, 'fraction_numerical': 0.023845763571790968, 'mean_word_length': 3.008130081300813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3712326', 'n_tokens_mistral': 726, 'n_tokens_neox': 684, 'n_words': 171}