This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: refcard.dvi build patch
- To: Christopher Faylor <cgf at redhat dot com>
- Subject: Re: refcard.dvi build patch
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 04 Jul 2001 13:35:39 -0400
- Cc: Andrew Cagney <ac131313 at cygnus dot com>,Colin Walters <walters at cis dot ohio-state dot edu>,gdb-patches at sourceware dot cygnus dot com
- References: <87g0ctd2la.church.of.emacs@cis.ohio-state.edu> <3B3AABB2.9080708@cygnus.com>
ChrisF? Ok in theory on cygwin?
Andrew
> I needed the following patch to build refcard.dvi on my system; bash
> was complaining about the for f in ; do ...; done syntax when
> when $REFEDITS was empty.
>
>
> Can anyone think of a reason to not set REFEDITS to /dev/null by default? Would either cygwin or djgpp have problems?
>
> Andrew
>
> PS: Which version of bash?
>
>
>
> 2001-06-21 Colin Walters <walters@cis.ohio-state.edu>
>
> * identity.sed: New file.
> * Makefile.in (REFEDITS): Use it.
> (refcard.dvi): Remove logic for testing for empty REFEDITS; this
> is now handled by identity.sed instead.
>
> --- /dev/null Wed Dec 31 19:00:00 1969
> +++ identity.sed Thu Jun 21 15:55:31 2001
> @@ -0,0 +1 @@
> +# This is an empty file used by the Makefile for building refcard.dvi.
>
> --- Makefile.in.~1.13.~ Mon May 14 12:18:50 2001
> +++ Makefile.in Thu Jun 21 13:31:02 2001
> @@ -84,8 +84,8 @@
> # e.g. for A4, Postscript: REFEDITS = a4rc.sed psrc.sed
> # for A4, CM fonts: REFEDITS = a4rc.sed
> # for US, PS fonts: REFEDITS = psrc.sed
> -# for default:
> -REFEDITS =
> +# for default: REFEDITS = identity.sed
> +REFEDITS = identity.sed
>
> # Don Knuth's TeX formatter
> TEX = tex
> @@ -200,14 +200,10 @@
>
> # GDB QUICK REFERENCE (dvi output)
> refcard.dvi : refcard.tex $(REFEDITS)
> - if [ -z "$(REFEDITS)" ]; then \
> - cp $(srcdir)/refcard.tex sedref.tex ; \
> - else \
> - echo > tmp.sed ; \
> - for f in $(REFEDITS) ; do \
> - cat $(srcdir)/$$f >>tmp.sed ; done ; \
> - sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex ; \
> - fi
> + echo > tmp.sed ; \
> + for f in $(REFEDITS) ; do \
> + cat $(srcdir)/$$f >>tmp.sed ; done ; \
> + sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex ; \
> $(SET_TEXINPUTS) $(TEX) sedref.tex
> mv sedref.dvi refcard.dvi
> rm -f sedref.log sedref.tex tmp.sed
>
>
>
>
>