From: Fred Drake Date: Sat, 27 Sep 2003 16:03:27 +0000 (+0000) Subject: Make sure LaTeX2HTML's $TEXINPUTS variable is initialized to include X-Git-Tag: v2.3.2c1~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=75a0717b167f31c05036fb95657300dc596462a1;p=thirdparty%2FPython%2Fcpython.git Make sure LaTeX2HTML's $TEXINPUTS variable is initialized to include directories identified in the TEXINPUTS environment variable. I think this is the last part of the fix for the version number problems seen in the documentation for the 2.3.1 release. --- diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index 2164ace27d2f..ebf63533e758 100644 --- a/Doc/perl/l2hinit.perl +++ b/Doc/perl/l2hinit.perl @@ -88,12 +88,24 @@ sub custom_driver_hook { # seems to be sufficiently general that it should be fine for HOWTO # processing. # + # XXX This still isn't quite right; we should actually be inserting + # $mytexinputs just before any empty entry in TEXINPUTS is one + # exists instead of just concatenating the pieces like we do here. + # my $file = $_[0]; my($jobname, $dir, $ext) = fileparse($file, '\..*'); $dir = L2hos->Make_directory_absolute($dir); $dir =~ s/$dd$//; $TEXINPUTS = "$dir$envkey$mytexinputs"; - print "\nAdding $dir to \$TEXINPUTS\n"; + # Push everything into $TEXINPUTS since LaTeX2HTML doesn't pick + # this up on it's own; we clear $ENV{'TEXINPUTS'} so the value set + # for this by the main LaTeX2HTML script doesn't contain duplicate + # directories. + if ($ENV{'TEXINPUTS'}) { + $TEXINPUTS .= "$envkey$ENV{'TEXINPUTS'}"; + $ENV{'TEXINPUTS'} = undef; + } + print "\nSetting \$TEXINPUTS to $TEXINPUTS\n"; }