Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:rakudo/rakudo
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick R. Michaud committed Feb 8, 2009
2 parents 7b58aca + cb3422f commit 71179f1
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 13 deletions.
13 changes: 7 additions & 6 deletions .gitignore
@@ -1,15 +1,16 @@
src/gen_*.pir
Makefile
t/spec
.*.swp
*.patch
Test.pir
perl6
perl6.pbc
src/ops/*.manifest
src/ops/*.exp
src/ops/*.ilk
src/ops/*.lib
src/ops/*.pdb
perl6.exe
perl6.c
perl6.o
perl6.obj
t/localtest.data
t/spec
parrot
perl6
perl6.c
Expand Down
22 changes: 15 additions & 7 deletions Configure.pl
Expand Up @@ -3,6 +3,7 @@

use strict;
use warnings;
use 5.008;


my %valid_options = (
Expand Down Expand Up @@ -71,12 +72,12 @@ sub read_parrot_config {
my %config = ();
for my $exe (@parrot_config_exe) {
no warnings;
if (open(PARROT_CONFIG, "$exe --dump |")) {
if (open my $PARROT_CONFIG, '-|', "$exe --dump") {
print "Reading configuration information from $exe\n";
while (<PARROT_CONFIG>) {
while (<$PARROT_CONFIG>) {
if (/(\w+) => '(.*)'/) { $config{$1} = $2 }
}
close(PARROT_CONFIG);
close $PARROT_CONFIG;
last;
}
}
Expand All @@ -87,10 +88,10 @@ sub read_parrot_config {
# Generate a Makefile from a configuration
sub create_makefile {
my %config = @_;
open(ROOTIN, "<config/makefiles/root.in") ||
open my $ROOTIN, "<config/makefiles/root.in" or
die "Unable to read config/makefiles/root.in \n";
my $maketext = join('', <ROOTIN>);
close(ROOTIN);
my $maketext = join('', <$ROOTIN>);
close $ROOTIN;
$maketext =~ s{//}{/}g;
$maketext =~ s/@(\w+)@/$config{$1}/g;

Expand All @@ -117,7 +118,7 @@ END

# Print some help text.
sub print_help {
print <<END;
print <<'END';
Configure.pl - Rakudo Configure
General Options:
Expand All @@ -127,3 +128,10 @@ sub print_help {
END
}

# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4:
6 changes: 6 additions & 0 deletions src/ops/.gitignore
Expand Up @@ -4,3 +4,9 @@
*.so
*.h
*.bundle
*.dll
*.manifest
*.exp
*.ilk
*.lib
*.pdb
6 changes: 6 additions & 0 deletions src/pmc/.gitignore
Expand Up @@ -4,4 +4,10 @@
*.so
*.h
*.bundle
*.dll
*.manifest
*.exp
*.ilk
*.lib
*.pdb
objectref.pmc
6 changes: 6 additions & 0 deletions t/harness
Expand Up @@ -20,6 +20,12 @@ our %harness_args = (
verbosity => 0,
);

if (-d 'parrot') {
$harness_args{exec} = ['parrot/parrot', 'perl6.pbc'];
} else {
$harness_args{compiler} = 'perl6.pbc';
}

GetOptions(
'tests-from-file=s' => \my $list_file,
'fudge' => \my $do_fudge,
Expand Down

0 comments on commit 71179f1

Please sign in to comment.