X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/82443642d255cc2fd61644cf3fef2c9622bed245..11aef5e95b890364474c49c7d4529de2bec3544e:/tests/bison.in diff --git a/tests/bison.in b/tests/bison.in index f21b2bcd..b8e0e057 100644 --- a/tests/bison.in +++ b/tests/bison.in @@ -34,14 +34,15 @@ status=$? for i do case $i in - */parse-gram.y) + */src/parse-gram.y) if $PERL --version >/dev/null; then # We are called by ylwrap which still uses y.tab.*, and # post-processes the synclines on y.tab.c itself. Don't let it # do it. Besides, it leaves "parse-gram.y" as the source, # dropping the src/ part. - $PERL -pi -e 's{"y\.tab\.}{"parse-gram.}g;' \ - -e 's{".*/(parse-gram\.y)"}{"$1"}g;' \ + $PERL -pi -e 's{"y\.tab\.}{"src/parse-gram.}g;' \ + -e 's{".*/(parse-gram\.y)"}{"src/$1"}g;' \ + -e 's{GRAM_Y_TAB_H}{GRAM_SRC_PARSE_GRAM_H}g;' \ y.tab.[ch] fi ;;