mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix the fix to allow the .tex document sources not live in ".".
This commit is contained in:
parent
25d4e2873c
commit
df825a10fc
1 changed files with 2 additions and 1 deletions
|
@ -220,14 +220,15 @@ fi
|
||||||
COMMONTEXINPUTS=$TOPDIR/texinputs:$TEXINPUTS
|
COMMONTEXINPUTS=$TOPDIR/texinputs:$TEXINPUTS
|
||||||
|
|
||||||
for FILE in $@ ; do
|
for FILE in $@ ; do
|
||||||
|
FILEDIR=`dirname $FILE`
|
||||||
FILE=`basename ${FILE%.tex}`
|
FILE=`basename ${FILE%.tex}`
|
||||||
#
|
#
|
||||||
# Put the directory the .tex file is in is also the first directory in
|
# Put the directory the .tex file is in is also the first directory in
|
||||||
# TEXINPUTS, to allow files there to override files in the common area.
|
# TEXINPUTS, to allow files there to override files in the common area.
|
||||||
#
|
#
|
||||||
FILEDIR=`dirname $FILE`
|
|
||||||
TEXINPUTS=$FILEDIR:$COMMONTEXINPUTS
|
TEXINPUTS=$FILEDIR:$COMMONTEXINPUTS
|
||||||
export TEXINPUTS
|
export TEXINPUTS
|
||||||
|
echo TEXINPUTS is $TEXINPUTS
|
||||||
#
|
#
|
||||||
if [ "$BUILD_DVI" -o "$BUILD_PS" ] ; then
|
if [ "$BUILD_DVI" -o "$BUILD_PS" ] ; then
|
||||||
build_dvi $FILE 2>&1 | tee -a $LOGFILE
|
build_dvi $FILE 2>&1 | tee -a $LOGFILE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue