This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH doc/refcard.tex
- To: "Eli Zaretskii" <eliz at is dot elta dot co dot il>, <pedwards at disaster dot jaj dot com>
- Subject: Re: PATCH doc/refcard.tex
- From: Adam Mirowski <mir at sunchorus dot France dot Sun dot COM>
- Date: Tue, 26 Dec 2000 11:41:10 +0-100
- Cc: <gdb-patches at sources dot redhat dot com>
>> (Incidentally, the doc/Makefile.in commands for refcard.dvi won't work.
>> When REFEDITS is empty, the command sequence includes "for f in ; do some
>> commands ; done" and every Bourne-family shell I tried pukes on the early
>> ';'. The irony is that this is in a branch which knows that REFEDITS is
>> not empty, but is joined together with the lines executed when it is empty,
>> into one long shell statement.)
>
>This works for me with Bash. Hmm. Does it work if you replace
>"$(REFEDITS)" with $$REFEDITS ? (You might need to "export REFEDITS"
>somewhere in the Makefile.)
There are no quotes around the refedits variable, that
is the problem. Yes, it seems that bash does not need
them in a for/in/do/done construct after "in" when the
variable passed is empty, unlike the original Bourne shell.
Looks like almost everybody compiling gdb docs must be
using bash; I was quite suprized some time ago to see
that a simple "make ps" did not work in the docs directory.
-Adam