summaryrefslogtreecommitdiff
path: root/Master/bin
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin')
-rwxr-xr-xMaster/bin/win32/dviout.bat4
1 files changed, 3 insertions, 1 deletions
diff --git a/Master/bin/win32/dviout.bat b/Master/bin/win32/dviout.bat
index 10b12763b43..4537a9c93f6 100755
--- a/Master/bin/win32/dviout.bat
+++ b/Master/bin/win32/dviout.bat
@@ -12,12 +12,14 @@ rem Get TL installation root (w/o trailing backslash)
set tlroot=%~dp0:
set tlroot=%tlroot:\bin\win32\:=%
if not exist "%tlroot%\bin\win32\kpsewhich.exe" goto :no_tl
+rem Make sure our bin dir is the first one on the path
+path %tlroot%\bin\win32;%path%
rem Ask kpsewhich for TEXMFVAR
for /f "delims=" %%I in (
'kpsewhich --expand-var "$TEXMFVAR/fonts"'
) do (
- set fontsdir=%%~fJ
+ set fontsdir=%%~fI
)
if not exist "%fontsdir%\" md "%fontsdir%"
if not exist "%fontsdir%\" goto :no_fontsdir