I'm submitting the following suggestion, included first with diff -uw, and then -u if you want to normalize some blanks.
Thanks!
Index: ChangeLog
from Akim Demaille <[EMAIL PROTECTED]>
* util/texi2dvi (tex_envvars): New.
Use it to forward -I directories to BIBINPUTS and BSTINPUTS, in
addition of INDEXSTYLE and TEXINPUTS.
Index: util/texi2dvi
===================================================================
RCS file: /cvsroot/texinfo/texinfo/util/texi2dvi,v
retrieving revision 1.21
diff -u -u -u -w -r1.21 texi2dvi
--- util/texi2dvi 28 May 2003 12:38:28 -0000 1.21
+++ util/texi2dvi 2 Jun 2003 06:51:20 -0000
@@ -113,11 +113,14 @@
# In case someone crazy insists on using grep -E.
: ${EGREP=egrep}
-# Save this so we can construct a new TEXINPUTS path for each file.
-TEXINPUTS_orig="$TEXINPUTS"
-# Unfortunately makeindex does not read TEXINPUTS.
-INDEXSTYLE_orig="$INDEXSTYLE"
-export TEXINPUTS INDEXSTYLE
+# Save TEXINPUTS so we can construct a new TEXINPUTS path for each file.
+# Unfortunately bibtex and makeindex do not read TEXINPUTS.
+tex_envvars="BIBINPUTS BSTINPUTS INDEXSTYLE TEXINPUTS"
+for var in $tex_envvars;
+do
+ eval ${var}_orig=\$$var
+ export $var
+done
# Push a token among the arguments that will be used to notice when we
# ended options/arguments parsing.
@@ -364,8 +367,11 @@
# files in `.'. Include orig_pwd in case we are in clean mode, where
# we've cd'd to a temp directory.
common="$orig_pwd$path_sep$filename_dir$path_sep$txincludes"
- TEXINPUTS="$common$TEXINPUTS_orig"
- INDEXSTYLE="$common$INDEXSTYLE_orig"
+ for var in $tex_envvars;
+ do
+ eval ${var}="\$common\$${var}_orig"
+ export $var
+ done
# Convert relative paths to absolute paths, so we can run in another
# directory (e.g., in --clean mode, or during the macro-support detection.)
ws-normalizing.path
Description: Binary data
_______________________________________________ Bug-texinfo mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-texinfo
