Changeset 7442
- Timestamp:
- 10/08/05 18:56:02 (3 years ago)
- Files:
-
- 6 modified
-
lib/Perl6/Pugs.pm (modified) (1 diff)
-
perl5/PIL2JS/jspugs.pl (modified) (2 diffs)
-
perl5/PIL2JS/lib/PIL2JS.pm (modified) (3 diffs)
-
perl5/PIL2JS/runjs.pl (modified) (3 diffs)
-
perl5/Perl6-MetaModel (modified) (1 prop)
-
util/gen_prelude.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lib/Perl6/Pugs.pm
r7365 r7442 74 74 75 75 You can also read the list via Google Groups at 76 L<http://groups-beta.google.com/group/perl.perl6.compiler>. 76 L<http://groups-beta.google.com/group/perl.perl6.compiler> or GMane at 77 L<http://news.gmane.org/gmane.comp.lang.perl.perl6.compiler>. 77 78 78 79 Please submit bug reports to C<E<lt>pugsbugs@perl.orgE<gt>>. -
perl5/PIL2JS/jspugs.pl
r7405 r7442 6 6 use FindBin; 7 7 use File::Spec; 8 use lib File::Spec->catfile($FindBin::Bin, "lib"); 8 use lib File::Spec->catdir($FindBin::Bin, "lib"); 9 use lib File::Spec->catdir($FindBin::Bin); 9 10 use PIL2JS; 10 11 use PIL::Parser; … … 175 176 sub command_e { 176 177 my $js = eval { jsbin_hack(compile_perl6_to_standalone_js("-e", shift)) }; 178 print $OUT $@ and return if $@; 177 179 run_js($js) if $js; 178 180 } -
perl5/PIL2JS/lib/PIL2JS.pm
r7388 r7442 23 23 24 24 sub pwd { File::Spec->catfile($FindBin::Bin, @_) } 25 sub try_files { 26 my @cands = @_; 27 -e $_ and return $_ for @cands; 28 return $cands[0]; 29 } 30 31 sub jsprelude_path { try_files pwd(qw< libjs PIL2JS.js >), pwd(qw< .. .. js lib PIL2JS.js >) } 25 32 26 33 our %cfg = ( … … 30 37 preludepc => pwd('Prelude.js'), 31 38 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? 34 41 ); 35 42 … … 211 218 } 212 219 213 sub jsprelude_path { pwd qw< libjs PIL2JS.js > }214 215 220 1; -
perl5/PIL2JS/runjs.pl
r7143 r7442 6 6 use FindBin; 7 7 use File::Spec; 8 use lib File::Spec->catfile($FindBin::Bin, "lib"); 8 use lib File::Spec->catdir($FindBin::Bin, "lib"); 9 use lib File::Spec->catdir($FindBin::Bin); 9 10 use PIL2JS; 10 11 use Getopt::Long; … … 54 55 ) and @pugs_args or usage(); 55 56 56 unless(-e $PIL2JS::cfg{preludepc} ) {57 unless(-e $PIL2JS::cfg{preludepc} and -s $PIL2JS::cfg{preludepc}) { 57 58 warn "*** Precompiled Prelude doesn't exist yet; precompiling...\n"; 58 59 my $js = precomp_module_to_mini_js "-I", PIL2JS::pwd("lib6"), "-MPrelude::JS"; … … 60 61 } 61 62 62 unless(-e $PIL2JS::cfg{testpc} ) {63 unless(-e $PIL2JS::cfg{testpc} and -s $PIL2JS::cfg{testpc}) { 63 64 warn "*** Precompiled Test.pm doesn't exist yet; precompiling...\n"; 64 65 my $js = precomp_module_to_mini_js "-MTest"; -
perl5/Perl6-MetaModel
-
Property
svn:ignore set
to
pm_to_blib
blib
blibdirs
Makefile
blib6
-
Property
svn:ignore set
to
-
util/gen_prelude.pl
r7362 r7442 163 163 die "Pugs ".(($?&255)?"killed by signal $?" 164 164 :"exited with error code ".($?>>8)) if $?; 165 unlink $TEMP_PRELUDE; 165 166 print STDERR "done.\n" if $Config{verbose}; 166 167 }
