[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] gendocs.sh
From: |
Sergey Poznyakoff |
Subject: |
[PATCH] gendocs.sh |
Date: |
Tue, 11 Jan 2005 16:16:32 +0200 |
Hello,
I propose the attached patch to gendoc.sh utility.
The reason for evaluating $cmd prior to its execution is that otherwise
it is impossible to pass quoted arguments to texi2dvi. For example, in
GNU Anubis we use the following Makefile snippet:
manual:
TEXINPUTS=$(srcdir):$(top_srcdir)/build:$(TEXINPUTS) \
MAKEINFO="$(MAKEINFO) $(MAKEINFOFLAGS)" \
TEXI2DVI="$(TEXI2DVI) -t @finalout -t '@set $(RENDITION)' -E" \
$(GENDOCS) anubis 'GNU Anubis manual'
Without the proposed change option "-t '@set $(RENDITION)'" is passed as
two arguments.
I suspect that all other invocations of `$cmd' should also be made via
`eval', although I did not check this yet.
Regards,
Sergey
--- gendocs.sh.orig Fri Jan 7 18:26:51 2005
+++ gendocs.sh Fri Jan 7 18:28:39 2005
@@ -157,7 +157,7 @@ info_tgz_size="`calcsize $outdir/$PACKAG
cmd="${TEXI2DVI} $srcfile"
echo "Generating dvi ... ($cmd)"
-$cmd
+eval $cmd
# now, before we compress dvi:
echo Generating postscript...
@@ -173,7 +173,7 @@ mv $PACKAGE.dvi.gz $outdir/
cmd="${TEXI2DVI} --pdf $srcfile"
echo "Generating pdf ... ($cmd)"
-$cmd
+eval $cmd
pdf_size="`calcsize $PACKAGE.pdf`"
mv $PACKAGE.pdf $outdir/
- [PATCH] gendocs.sh,
Sergey Poznyakoff <=