X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/0de566d74fdaf0a49123989fe8d4ad06603c6608..d83f0a8247ea7458731c8479d8cbf3ee1fa81243:/regen_perly.pl diff --git a/regen_perly.pl b/regen_perly.pl index da917e0..af92aa8 100644 --- a/regen_perly.pl +++ b/regen_perly.pl @@ -2,7 +2,7 @@ # # regen_perly.pl, DAPM 12-Feb-04 # -# Copyright (c) 2004 Larry Wall +# Copyright (c) 2004, 2005 Larry Wall # # Given an input file perly.y, run bison on it and produce # the following output files: @@ -65,11 +65,11 @@ die "$0: must be run on an ASCII system\n" unless ord 'A' == 65; # the test below to allow that version too. DAPM Feb 04. my $version = `$bison -V`; -unless ($version =~ /\b1\.875\b/) { die <) { print H_FILE "#endif /* PERL_CORE */\n"; $endcore_done = 1; } - s/"perlytmp.h"/"perly.h"/; + s/"$tmph_file"/"$h_file"/; print H_FILE $_; } close TMPH_FILE; @@ -150,7 +150,7 @@ sub extract { switch \s* \( \s* \w+ \s* \) \s* { \s* ( case \s* \d+ \s* : \s* - \#line [^\n]+"perly\.y" + \#line [^\n]+"\Q$y_file\E" .*? ) } @@ -169,10 +169,6 @@ sub extract { return $actlines. "\n", $tablines. "\n"; } - - - - sub my_system { system(@_); if ($? == -1) {