This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH doc/refcard.tex


> 
> There are no quotes around the refedits variable, that
> is the problem.

Sorry, I came to a conclusion that I don't understand the problem.
Here's the relevant fragment from doc/Makefile.in:

    # 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
	    $(SET_TEXINPUTS) $(TEX) sedref.tex
	    mv sedref.dvi refcard.dvi
	    rm -f sedref.log sedref.tex tmp.sed

As you see, $(REFEDITS) _is_ wrapped in quotes, and the shell should
see ``for f in "" ; do''.  Am I missing something?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]