mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-10 21:03:04 +00:00
* src/output.c (output_parser): Compute the `#line' lines when
there are. * src/Makefile.am (bison.simple): Be a simple copy of bison.s1. Suggested by Hans Aberg.
This commit is contained in:
@@ -29,11 +29,7 @@ data_DATA = bison.simple bison.hairy
|
||||
|
||||
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 }\
|
||||
{ print }' >$@t
|
||||
mv $@t $@
|
||||
bison.simple: bison.s1
|
||||
cp $(srcdir)/bison.s1 $@
|
||||
|
||||
DISTCLEANFILES = bison.simple
|
||||
|
||||
Reference in New Issue
Block a user