[t/spec] Unfudge test that now works.
[pugs.git] / make_build_perl5
blob7cc5a0d375d754aedc8956ef90a08b5997af01d6
1 #!/usr/bin/perl
3 # Use this script as an alternative to "perl Makefile.PL && make build_perl" if you don't have GHC installed.
5 =pod
7 ./make_build_perl5;
8 perl util/src_to_blib.pl;
9 util/prove6 t/01-sanity
11 There might be a few modules missing, install them from CPAN. You will see the
12 tc files after you run the tests.
14 This script is dumb about finding the right 'make' to use.
15 You may need to edit it to provide the correct value.
17 =cut
19 $MAKE = 'make';
21 my @cmds = for_perl5("cd __DIR__ && perl Makefile.PL && $MAKE");
23 for (@cmds) {
24 system($_);
27 ####
29 sub for_perl5 {
30 my $cmd = shift;
31 $cmd =~ s{\n}{}g;
32 my @cmds;
33 foreach my $dir (grep { -d } glob('perl5/*')) {
34 -e "$dir/Makefile.PL" or next;
36 # Skip XS modules for now
37 next if glob("$dir/*.xs") or glob("$dir/*.i");
39 my $this = $cmd;
40 $this =~ s{__DIR__}{$dir}g;
41 push @cmds, $this;
43 # Changed from Makefile.PL to just return the commands
44 return @cmds;
47 # vim:ft=perl