diff options
author | Akira Yokosawa <akiyks@gmail.com> | 2023-01-26 09:23:26 +0900 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-01-25 17:44:04 -0800 |
commit | 9cce16eff154c149e343e8c3ea575c53c82ed2ff (patch) | |
tree | 955e9af29b9dc1789717d0d0bb27030ada62a2f5 /utilities | |
parent | 685184dff46ffdec02b7402a36b06359cb085f29 (diff) | |
download | perfbook-9cce16eff154c149e343e8c3ea575c53c82ed2ff.tar.gz |
run{first}latex.sh: Set default of LATEX variable properly
The default of "pdflatex" has never worked as expected.
When these scripts run under Makefile's control, they are
given "LATEX=pdflatex" by default, and work just fine.
When directly invoked from command line:
$ sh utilities/runfirstlatex.sh perfbook
, it runs with LATEX="" and ends up in one of various errors.
Fix this by using the right pattern of ":=".
Fixes: 241d5350b162 ("run{first}latex.sh: Use variable for 'pdflatex' command")
Signed-off-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'utilities')
-rw-r--r-- | utilities/runfirstlatex.sh | 2 | ||||
-rw-r--r-- | utilities/runlatex.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/utilities/runfirstlatex.sh b/utilities/runfirstlatex.sh index b92895f3..f12f1488 100644 --- a/utilities/runfirstlatex.sh +++ b/utilities/runfirstlatex.sh @@ -67,7 +67,7 @@ fi basename=`echo $1 | sed -e 's/\.tex$//'` -: ${LATEX:-pdflatex} +: ${LATEX:=pdflatex} echo "$LATEX 1 for $basename.pdf" $LATEX $LATEX_OPT $basename > /dev/null 2>&1 < /dev/null diff --git a/utilities/runlatex.sh b/utilities/runlatex.sh index d4c9baf8..e23bc87b 100644 --- a/utilities/runlatex.sh +++ b/utilities/runlatex.sh @@ -29,7 +29,7 @@ # Authors: Paul E. McKenney <paulmck@us.ibm.com> # Akira Yokosawa <akiyks@gmail.com> -: ${LATEX:-pdflatex} +: ${LATEX:=pdflatex} diff_warning () { if diff -q $basename-warning.log $basename-warning-prev.log >/dev/null |