From e8da3a59819e09cbc776f56e945e88b8d561e73d Mon Sep 17 00:00:00 2001 From: helly Date: Sun, 13 Jan 2008 17:24:31 +0000 Subject: [PATCH] - Limit differences in generated files from use of different bison versions --- re2c/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/re2c/Makefile.am b/re2c/Makefile.am index aeb2712c..e91b8712 100755 --- a/re2c/Makefile.am +++ b/re2c/Makefile.am @@ -59,7 +59,10 @@ release: dist zip src-rpm parser.cc: $(top_srcdir)/parser.y $(YACC) $(YFLAGS) $(top_srcdir)/parser.y || exit - cat y.tab.c | sed 's/"y\.tab\.c"/"parser.cc"/g' > $(top_srcdir)/parser.cc + cat y.tab.c | sed -e 's/"y\.tab\.c"/"parser.cc"/g' -e 's/"\.\/parser\.y"/"parser.y"/g' > $(top_srcdir)/parser.cc + rm -f y.tab.c + mv -f y.tab.h y.tab.c + cat y.tab.c | sed -e 's/"\.\/parser\.y"/"parser.y"/g' > y.tab.h rm -f y.tab.c if cmp -s $(top_srcdir)/parser.cc $(top_srcdir)/bootstrap/parser.cc; then :; else cp -f $(top_srcdir)/parser.cc $(top_srcdir)/bootstrap/parser.cc; fi if cmp -s y.tab.h $(top_srcdir)/y.tab.h; then :; else mv -f y.tab.h $(top_srcdir)/y.tab.h; fi -- 2.40.0