* Makefile.in (refcard.dvi): Rewrite to avoid problems with empty
authorAndrew Cagney <cagney@redhat.com>
Sat, 14 Jul 2001 16:14:10 +0000 (16:14 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 14 Jul 2001 16:14:10 +0000 (16:14 +0000)
`test` expressions on bash.  Problem reported by Colin Walters.

gdb/doc/ChangeLog
gdb/doc/Makefile.in

index 1b103b8aded33f5095f0a3f0d492398932a1988a..34cdb8f1f2e7698cb7013598c8f3bd2842eacc09 100644 (file)
@@ -1,3 +1,8 @@
+2001-07-06  Andrew Cagney  <ac131313@redhat.com>
+
+       * Makefile.in (refcard.dvi): Rewrite to avoid problems with empty
+       `test` expressions on bash.  Problem reported by Colin Walters.
+
 2001-07-04  Andrew Cagney  <ac131313@redhat.com>
 
        * gdbint.texinfo (User Interface): Update ui-out documentation to
index d483330a5c61260112e8e3cf51ffb2eb87634bd3..f45a28f3a46537ac14a62314266788ea088eebba 100644 (file)
@@ -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