From: Andrew Cagney Date: Sat, 14 Jul 2001 16:14:10 +0000 (+0000) Subject: * Makefile.in (refcard.dvi): Rewrite to avoid problems with empty X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dfa249fb263f24f31fc88a3753b2eb26ffc5219e;p=binutils-gdb.git * Makefile.in (refcard.dvi): Rewrite to avoid problems with empty `test` expressions on bash. Problem reported by Colin Walters. --- diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 1b103b8aded..34cdb8f1f2e 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-06 Andrew Cagney + + * Makefile.in (refcard.dvi): Rewrite to avoid problems with empty + `test` expressions on bash. Problem reported by Colin Walters. + 2001-07-04 Andrew Cagney * gdbint.texinfo (User Interface): Update ui-out documentation to diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in index d483330a5c6..f45a28f3a46 100644 --- a/gdb/doc/Makefile.in +++ b/gdb/doc/Makefile.in @@ -200,14 +200,12 @@ maintainer-clean realclean: distclean # 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 x $(REFEDITS) ; do \ + test x$$f = xx && continue ; \ + 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