From dbe7f27171417db1ff082adbdf0b35db5dd94e0f Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 17 Mar 2000 13:33:02 +0000 Subject: [PATCH] * src/Makefile.am (bison.simple): Fix the awk program: quote only the file name, not the whole `#line LINE FILE'. --- ChangeLog | 5 +++++ src/Makefile.am | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b0e4546..fcd7c4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2000-03-17 Akim Demaille + * src/Makefile.am (bison.simple): Fix the awk program: quote only + the file name, not the whole `#line LINE FILE'. + +2000-03-17 Akim Demaille + On syntax errors, report the token on which we choked. * bison.s1 (yyparse): In the label yyerrlab, when YYERROR_VERBOSE, diff --git a/src/Makefile.am b/src/Makefile.am index 1f5ba8d..f325b72 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -27,7 +27,7 @@ EXTRA_DIST = bison.s1 bison.hairy build.com bison.cld vmshlp.mar bison.simple: bison.s1 Makefile sed -e "s/@bison_version@/$(VERSION)/" $(srcdir)/bison.s1 | \ awk '\ - /^#line/ { printf "\"#line %d $(datadir)/bison.simple\"\n", NR+1; next }\ + /^#line/ { printf "#line %d \"$(datadir)/bison.simple\"\n", NR+1; next }\ { print }' >$@t mv $@t $@ -- 2.7.4