diff options
Diffstat (limited to 'Master/bin/win32')
-rwxr-xr-x | Master/bin/win32/dviout.bat | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/bin/win32/dviout.bat b/Master/bin/win32/dviout.bat index d09e13602f9..0bbba5e44f0 100755 --- a/Master/bin/win32/dviout.bat +++ b/Master/bin/win32/dviout.bat @@ -16,8 +16,10 @@ set tlroot= for /f "tokens=1,2 delims=;" %%I in (
'kpsewhich --expand-var "$SELFAUTOPARENT;$TEXMFVAR"'
) do (
- set tlroot=%%~sfI
- set fontsdir=%%~fJ\fonts
+ if %%I==%%~dI set tlroot=%%I
+ if not %%I==%%~dI set tlroot=%%~sfI
+ if %%J==%%~dJ set fontsdir=%%J\fonts
+ if not %%J==%%~dJ set fontsdir=%%~fJ\fonts
)
if not defined tlroot goto :no_tl
if not exist "%fontsdir%\" md "%fontsdir%"
|