Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit df825a1

Browse files
committed
Fix the fix to allow the .tex document sources not live in ".".
1 parent 25d4e28 commit df825a1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/tools/mkhowto.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,15 @@ fi
220220
COMMONTEXINPUTS=$TOPDIR/texinputs:$TEXINPUTS
221221

222222
for FILE in $@ ; do
223+
FILEDIR=`dirname $FILE`
223224
FILE=`basename ${FILE%.tex}`
224225
#
225226
# Put the directory the .tex file is in is also the first directory in
226227
# TEXINPUTS, to allow files there to override files in the common area.
227228
#
228-
FILEDIR=`dirname $FILE`
229229
TEXINPUTS=$FILEDIR:$COMMONTEXINPUTS
230230
export TEXINPUTS
231+
echo TEXINPUTS is $TEXINPUTS
231232
#
232233
if [ "$BUILD_DVI" -o "$BUILD_PS" ] ; then
233234
build_dvi $FILE 2>&1 | tee -a $LOGFILE

0 commit comments

Comments
 (0)