From c3835f5ca0e3ea856213a22367233e148ea26550 Mon Sep 17 00:00:00 2001 From: jbj Date: Sun, 6 May 2001 19:17:14 +0000 Subject: - fix: specfile queries with BuildArch: (#27589). CVS patchset: 4746 CVS date: 2001/05/06 19:17:14 --- lib/Makefile.am | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'lib/Makefile.am') diff --git a/lib/Makefile.am b/lib/Makefile.am index 247cb446f..65ec46d4f 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -57,9 +57,16 @@ getdate.c: getdate.y @echo expect 10 shift/reduce conflicts $(YACC) $(srcdir)/getdate.y -@if test -f y.tab.c; then \ - { echo "/*@-globstate -retvalint -unqualifiedtrans -usedef -varuse -nullderef -exportlocal @*/";\ - cat y.tab.c ;\ - echo "/*@=globstate =retvalint =unqualifiedtrans =usedef =varuse =nullderef =exportlocal @*/";\ + { echo "/*@-globstate -statictrans -unqualifiedtrans @*/";\ + echo "/*@-retvalint -usedef -varuse -nullderef -nullassign @*/";\ + sed -e 's,y.tab.c,getdate.c,' y.tab.c \ + -e 's,^YYSTYPE ,static &,' \ + -e 's,^short ,static &,' \ + -e 's,^const short ,static &,' \ + -e 's,^int yydebug,/*@unused@*/ static &,' \ + -e 's,^int ,static &,' ;\ + echo "/*@=retvalint =usedef =varuse =nullderef =nullassign @*/";\ + echo "/*@=globstate =statictrans =unqualifiedtrans @*/";\ } > getdate.c ;\ rm -f y.tab.c; \ else \ -- cgit v1.2.3