diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2009-07-05 18:20:54 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2009-07-05 18:20:54 +0000 |
commit | 0def984534072a42a46f4a13089f1d48ab61f6bb (patch) | |
tree | 8e1bec0b78e7d1f9738bbe22f97eb1bdf1bf52c5 /Master/bin/win32 | |
parent | a98ff6f224cb7f5fe6f229b2b9d72f897a30479b (diff) |
fix for TL in root (e.g. of dvd)
git-svn-id: svn://tug.org/texlive/trunk@14120 c570f23f-e606-0410-a88d-b1316a301751
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%"
|