Changeset 32 for Makefile.PL

Show
Ignore:
Timestamp:
02/16/05 18:48:28 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
1041
Message:

* Code literals -- "sub", "pointy" and "bare" variants all works
* Lexical subroutine declarations via "my sub"
* Global subroutine and variables work again, via the envGlobal pad
* The "say", "exit", "die" primitives
* Bool.perl now prints correct literals (lwall)
* Blocks under void contexts now evaluates automatically
* The "..." (dotdotdot) literal

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Makefile.PL

    r9 r32  
    33use strict; 
    44use FindBin; 
     5use File::Spec; 
    56use Config; 
    67use inc::Module::Install; 
    78 
    89chdir $FindBin::Bin; 
     10my $pugs = File::Spec->catfile($FindBin::Bin, "pugs$Config{_exe}"); 
    911 
    1012name            ('Perl6-Pugs'); 
     
    1315author          ('Autrijus Tang <autrijus@autrijus.org>'); 
    1416license         ('perl'); 
    15 install_script  ("pugs$Config{_exe}"); 
     17install_script  ($pugs); 
    1618build_requires  ('Test::More'); 
    1719 
     
    6769 
    6870postamble(<< "."); 
    69 pugs$Config{_exe}: @{[glob("src/*.hs")]} 
    70         ghc --make -o pugs -O src/Main.hs -isrc 
     71$pugs: @{[glob("src/*.hs")]} 
     72        ghc --make -o pugs src/Main.hs -isrc 
    7173 
    7274tags :: 
     
    7577 
    7678WriteAll( sign => 1 ); 
     79 
     80# FIXUP 
     81open MAKEFILE, '< Makefile' or die $!; 
     82my $makefile = do { local $/; <MAKEFILE> }; 
     83$makefile =~ s/\b(test_harness\(\$\(TEST_VERBOSE\), )/ENV->{HARNESS_PERL} = '$pugs'; $1/; 
     84close MAKEFILE; 
     85open MAKEFILE, '> Makefile' or die $!; 
     86print MAKEFILE $makefile; 
     87close MAKEFILE;