diff options
author | Fred Drake <fdrake@acm.org> | 2003-09-27 16:04:23 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-09-27 16:04:23 (GMT) |
commit | cc2e48dd79da43319936ee4872557677c597bc1e (patch) | |
tree | cda0008a083db8e19adc17cd24bcff9bb9af6247 /Doc/perl/l2hinit.perl | |
parent | c050119de7a7269471cd11d4e1c07a6041983f31 (diff) | |
download | cpython-cc2e48dd79da43319936ee4872557677c597bc1e.zip cpython-cc2e48dd79da43319936ee4872557677c597bc1e.tar.gz cpython-cc2e48dd79da43319936ee4872557677c597bc1e.tar.bz2 |
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.
Diffstat (limited to 'Doc/perl/l2hinit.perl')
-rw-r--r-- | Doc/perl/l2hinit.perl | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index a774cca..87f73db 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"; } |