bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yacc script correct?


From: Joel E. Denny
Subject: Re: Yacc script correct?
Date: Sat, 26 May 2007 14:19:59 -0400 (EDT)

On Wed, 23 May 2007, Hans Aberg wrote:

> The Bison from CVS (Mac OS X, version 10.4.9) produces the script /
> usr/local/bin/yacc:
> #! /bin/sh
> exec '/usr/local/bin/bison' -y ""

Thanks.  I committed the following to fix that.

Index: ChangeLog
===================================================================
RCS file: /sources/bison/bison/ChangeLog,v
retrieving revision 1.1699
diff -p -u -r1.1699 ChangeLog
--- ChangeLog   20 May 2007 05:01:53 -0000      1.1699
+++ ChangeLog   26 May 2007 18:11:54 -0000
@@ -1,3 +1,9 @@
+2007-05-26  Joel E. Denny  <address@hidden>
+
+       * src/Makefile.am (yacc): Quote target action commands properly so
+       that the yacc script isn't corrupt.  Reported by Hans Aberg at
+       <http://lists.gnu.org/archive/html/bug-bison/2007-05/msg00003.html>.
+
 2007-05-20  Joel E. Denny  <address@hidden>
 
        Extend the front-end API for %define variables to more completely
Index: src/Makefile.am
===================================================================
RCS file: /sources/bison/bison/src/Makefile.am,v
retrieving revision 1.73
diff -p -u -r1.73 Makefile.am
--- src/Makefile.am     10 Nov 2006 06:11:20 -0000      1.73
+++ src/Makefile.am     26 May 2007 18:11:54 -0000
@@ -80,7 +80,7 @@ MOSTLYCLEANFILES = yacc
 
 yacc:
        echo '#! /bin/sh' >$@
-       echo "exec '$(bindir)/bison' -y \"address@hidden"" >>$@
+       echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@
        chmod a+x $@
 
 echo:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]