automake-patches
[Top][All Lists]
Advanced

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

Re: FYI: Yacc outputs


From: Ralf Corsepius
Subject: Re: FYI: Yacc outputs
Date: 31 Dec 2001 10:51:37 +0100

Am Son, 2001-12-30 um 22.16 schrieb Akim Demaille:
> 
> Hi People!
> 
> just a minor but important issue.
IMHO, this patch should not be applied, rsp. reverted.

*.output files are informative output files, comparable to listings or
files originating from using some "obscure verbosity mode" options
(Here: -v|--verbose) and not the actual/usable product of invoking
bison/yacc.

> Index: ChangeLog
> from  Akim Demaille  <address@hidden>
> 
>       * lib/am/yacc.am: Also rename the possible y.output file.
>       Remove the trailing y.tab.h.
> 
> Index: lib/am/yacc.am
> ===================================================================
> RCS file: /cvs/automake/automake/lib/am/yacc.am,v
> retrieving revision 1.9
> diff -u -u -r1.9 yacc.am
> --- lib/am/yacc.am 2001/12/14 16:25:37 1.9
> +++ lib/am/yacc.am 2001/12/30 21:15:29
> @@ -19,7 +19,7 @@
>  ?GENERIC?%EXT%%DERIVED-EXT%:
>  ?!GENERIC?%OBJ%: %SOURCE%
>  if %?MORE-THAN-ONE%
> -     $(SHELL) $(YLWRAP) %SOURCE% y.tab.c %OBJ% y.tab.h %BASE%.h -- %COMPILE%
> +     $(SHELL) $(YLWRAP) %SOURCE% y.tab.c %OBJ% y.tab.h %BASE%.h y.output 
> %BASE%.output -- %COMPILE%
>  else !%?MORE-THAN-ONE%
>       %COMPILE% %SOURCE%
>  ## Edit out `#line' or `#' directives.
> @@ -32,12 +32,16 @@
>         to=`echo "%BASE%_H" | sed \
>                  -e 
> 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
>                  -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'`; \
> -         sed "/^#/ s/Y_TAB_H/$$to/g" y.tab.h >%BASE%.ht; \
> +       sed "/^#/ s/Y_TAB_H/$$to/g" y.tab.h >%BASE%.ht; \
> +       rm y.tab.h; \
>         if cmp -s %BASE%.ht %BASE%.h; then \
>           rm -f %BASE%.ht ;\
>         else \
>           mv %BASE%.ht %BASE%.h; \
>         fi; \
> +     fi
> +     if test -f y.output; then \
> +       mv y.output %BASE%.output; \
>       fi
>  endif !%?MORE-THAN-ONE%

Furthermore, this patch is not 8.3-filename-save (y.output).

Ralf





reply via email to

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