aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc/Makefile.in
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-07-14 16:14:10 +0000
committerAndrew Cagney <cagney@redhat.com>2001-07-14 16:14:10 +0000
commitdfa249fb263f24f31fc88a3753b2eb26ffc5219e (patch)
tree94ac319b840c9d155147da736f91fc674858ac49 /gdb/doc/Makefile.in
parente7d10af41149f93f6629bf3503571b6c573dd177 (diff)
downloadgdb-dfa249fb263f24f31fc88a3753b2eb26ffc5219e.zip
gdb-dfa249fb263f24f31fc88a3753b2eb26ffc5219e.tar.gz
gdb-dfa249fb263f24f31fc88a3753b2eb26ffc5219e.tar.bz2
* Makefile.in (refcard.dvi): Rewrite to avoid problems with empty
`test` expressions on bash. Problem reported by Colin Walters.
Diffstat (limited to 'gdb/doc/Makefile.in')
-rw-r--r--gdb/doc/Makefile.in14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in
index d483330..f45a28f 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