Changeset 7442

Show
Ignore:
Timestamp:
10/08/05 18:56:02 (3 years ago)
Author:
iblech
Message:

* Usual svn props.
* Perl6::Pugs: Added link to GMane's archive of perl.perl6.compiler.
* util/gen_prelude.pl: Remove the tmp-Prelude.pm when it is no longer required.
* PIL2JS: jspugs.pl, runjs.pl, PIL2JS.pm: Support for running from "make

install"'s locations (previously, extra code was not necessary, as the
installed path structure was the same as the sourcedir path structure).
Note: -BJS still can't find jspugs.pl and runjs.
Note: PIL-Run still doesn't work with the new hierarchy.

Files:
6 modified

Legend:

Unmodified
Added
Removed
  • lib/Perl6/Pugs.pm

    r7365 r7442  
    7474 
    7575You can also read the list via Google Groups at 
    76 L<http://groups-beta.google.com/group/perl.perl6.compiler>. 
     76L<http://groups-beta.google.com/group/perl.perl6.compiler> or GMane at 
     77L<http://news.gmane.org/gmane.comp.lang.perl.perl6.compiler>. 
    7778 
    7879Please submit bug reports to C<E<lt>pugsbugs@perl.orgE<gt>>. 
  • perl5/PIL2JS/jspugs.pl

    r7405 r7442  
    66use FindBin; 
    77use File::Spec; 
    8 use lib File::Spec->catfile($FindBin::Bin, "lib"); 
     8use lib File::Spec->catdir($FindBin::Bin, "lib"); 
     9use lib File::Spec->catdir($FindBin::Bin); 
    910use PIL2JS; 
    1011use PIL::Parser; 
     
    175176sub command_e { 
    176177  my $js = eval { jsbin_hack(compile_perl6_to_standalone_js("-e", shift)) }; 
     178  print $OUT $@ and return if $@; 
    177179  run_js($js) if $js; 
    178180} 
  • perl5/PIL2JS/lib/PIL2JS.pm

    r7388 r7442  
    2323 
    2424sub pwd { File::Spec->catfile($FindBin::Bin, @_) } 
     25sub try_files { 
     26  my @cands = @_; 
     27  -e $_ and return $_ for @cands; 
     28  return $cands[0]; 
     29} 
     30 
     31sub jsprelude_path { try_files pwd(qw< libjs PIL2JS.js >), pwd(qw< .. .. js lib PIL2JS.js >) } 
    2532 
    2633our %cfg = ( 
     
    3037  preludepc => pwd('Prelude.js'), 
    3138  testpc    => pwd('Test.js'), 
    32   prelude   => pwd(qw< lib6 Prelude JS.pm >), 
    33   metamodel_base => pwd(qw< libjs >) . "/", # hack? 
     39  prelude   => try_files(pwd(qw< lib6 Prelude JS.pm >), pwd(qw< .. .. perl6 lib Prelude JS.pm>)), 
     40  metamodel_base => try_files(pwd(qw< libjs >), pwd(qw< .. .. js lib >)) . "/", # hack? 
    3441); 
    3542 
     
    211218} 
    212219 
    213 sub jsprelude_path { pwd qw< libjs PIL2JS.js > } 
    214  
    2152201; 
  • perl5/PIL2JS/runjs.pl

    r7143 r7442  
    66use FindBin; 
    77use File::Spec; 
    8 use lib File::Spec->catfile($FindBin::Bin, "lib"); 
     8use lib File::Spec->catdir($FindBin::Bin, "lib"); 
     9use lib File::Spec->catdir($FindBin::Bin); 
    910use PIL2JS; 
    1011use Getopt::Long; 
     
    5455) and @pugs_args or usage(); 
    5556 
    56 unless(-e $PIL2JS::cfg{preludepc}) { 
     57unless(-e $PIL2JS::cfg{preludepc} and -s $PIL2JS::cfg{preludepc}) { 
    5758  warn "*** Precompiled Prelude doesn't exist yet; precompiling...\n"; 
    5859  my $js = precomp_module_to_mini_js "-I", PIL2JS::pwd("lib6"), "-MPrelude::JS"; 
     
    6061} 
    6162 
    62 unless(-e $PIL2JS::cfg{testpc}) { 
     63unless(-e $PIL2JS::cfg{testpc} and -s $PIL2JS::cfg{testpc}) { 
    6364  warn "*** Precompiled Test.pm doesn't exist yet; precompiling...\n"; 
    6465  my $js = precomp_module_to_mini_js "-MTest"; 
  • perl5/Perl6-MetaModel

    • Property svn:ignore set to
      pm_to_blib
      blib
      blibdirs
      Makefile
      blib6
  • util/gen_prelude.pl

    r7362 r7442  
    163163    die "Pugs ".(($?&255)?"killed by signal $?" 
    164164         :"exited with error code ".($?>>8)) if $?; 
     165    unlink $TEMP_PRELUDE; 
    165166    print STDERR "done.\n" if $Config{verbose}; 
    166167}