[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI:
From: |
Akim Demaille |
Subject: |
FYI: |
Date: |
Wed, 15 Apr 2009 16:40:18 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
2009-04-15 Akim Demaille <address@hidden>
texi2dvi: simplify the handling of --no-line-error.
* bin/texi2dvi (no_line_error): Remove, rather use
line_error=false.
(run_tex): Adjust.
By the way, don't call tex --help if !$line_error.
Index: util/texi2dvi
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.143
diff -u -u -r1.143 texi2dvi
--- util/texi2dvi 15 Apr 2009 14:35:00 -0000 1.143
+++ util/texi2dvi 15 Apr 2009 14:37:33 -0000
@@ -51,7 +51,6 @@
expand= # t for expansion via makeinfo
includes=
line_error=true # Pass --file-line-error to TeX.
-no_line_error=false # absolutely do not pass --file-line-error to TeX
oname= # --output
out_lang=dvi
quiet=false # by default let the tools' message be displayed
@@ -925,18 +924,18 @@
local cmd="$tex"
# If possible, make TeX report error locations in GNU format.
- if test "${tex_help:+set}" != set; then
- # Go to a temporary directory to try --help, since old versions that
- # don't accept --help will generate a texput.log.
- tex_help_dir=$t2ddir/tex_help
- ensure_dir "$tex_help_dir"
- tex_help=`cd "$tex_help_dir" >&6 && $tex --help </dev/null 2>&1 || true`
- fi
- if $no_line_error; then :; else
+ if $line_error; then
+ if test "${tex_help:+set}" != set; then
+ # Go to a temporary directory to try --help, since old versions that
+ # don't accept --help will generate a texput.log.
+ tex_help_dir=$t2ddir/tex_help
+ ensure_dir "$tex_help_dir"
+ tex_help=`cd "$tex_help_dir" >&6 && $tex --help </dev/null 2>&1 || true`
+ fi
# The mk program and perhaps others want to parse TeX's
# original error messages.
- case $line_error:$tex_help in
- true:*file-line-error*) cmd="$cmd --file-line-error";;
+ case $tex_help in
+ *file-line-error*) cmd="$cmd --file-line-error";;
esac
fi
@@ -1570,7 +1569,7 @@
-I) shift; list_concat_dirs includes "$1";;
-l | --lang | --language) shift; set_language=$1;;
--mostly-clean) action=mostly-clean;;
- --no-line-error) no_line_error=true;;
+ --no-line-error) line_error=false;;
-o | --out | --output)
shift
# Make it absolute, just in case we also have --clean, or whatever.
- FYI:,
Akim Demaille <=
- FYI:, Akim Demaille, 2009/04/15