summaryrefslogtreecommitdiff
path: root/regen_perly.pl
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2006-12-04 12:08:56 +0000
committerDave Mitchell <davem@fdisolutions.com>2006-12-04 12:08:56 +0000
commit0d6f9730baddfb08f2c71411aa0ce015938a40cf (patch)
treee87ea36dde8732c9036f78c5ffab02e4646640eb /regen_perly.pl
parent5a7c70d6ca8b94092b0d31b2bf354dff7fe65494 (diff)
downloadperl-0d6f9730baddfb08f2c71411aa0ce015938a40cf.tar.gz
another fix for bison 2.3
p4raw-id: //depot/perl@29449
Diffstat (limited to 'regen_perly.pl')
-rw-r--r--regen_perly.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/regen_perly.pl b/regen_perly.pl
index a046399ab2..d34a8ade5e 100644
--- a/regen_perly.pl
+++ b/regen_perly.pl
@@ -172,6 +172,9 @@ sub extract {
or die "Can't extract actions from $tmpc_file\n";
$actlines = $1;
+ # C<#line 188 "perlytmp.c"> gets picked up by make depend, so remove them.
+ $actlines =~ s/^#line \d+ "\Q$tmpc_file\E".*$//gm;
+
return $actlines. "\n", $tablines. "\n";
}