diff options
author | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-08-03 15:06:50 +0000 |
---|---|---|
committer | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-08-03 15:06:50 +0000 |
commit | 2f50607d91debd747655620b8228359416abd933 (patch) | |
tree | 35d5c696feabb45b6b42eb6ed50d8e9f4299fe98 /Master/bin/win32/dviout.bat | |
parent | 330853d14e08ad9d787d7b0ad1d2b4907e6ace5a (diff) |
fix for double backslashes in paths to virtual (mapped) drives
git-svn-id: svn://tug.org/texlive/trunk@14521 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/win32/dviout.bat')
-rwxr-xr-x | Master/bin/win32/dviout.bat | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Master/bin/win32/dviout.bat b/Master/bin/win32/dviout.bat index d2970477995..5cf473f1fbf 100755 --- a/Master/bin/win32/dviout.bat +++ b/Master/bin/win32/dviout.bat @@ -8,18 +8,17 @@ rem Make environment changes local rem Disable delayed expansion (makes processing bang ! char easier)
setlocal enableextensions disabledelayedexpansion
-rem Add bin dir to path; avoid trailing backslash
-for %%I in ("%~f0\..") do path %%~fI;%path%
+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 Ask kpsewhich for TLROOT and TEXMFVAR
-set tlroot=
-for /f "tokens=1,2 delims=;" %%I in (
- 'kpsewhich --expand-var "$SELFAUTOPARENT/.;$TEXMFVAR/."'
+rem Ask kpsewhich for TEXMFVAR
+for /f "delims=" %%I in (
+ 'kpsewhich --expand-var "$TEXMFVAR/fonts"'
) do (
- set tlroot=%%~sfI
- set fontsdir=%%~fJ\fonts
+ set fontsdir=%%~fJ
)
-if not defined tlroot goto :no_tl
if not exist "%fontsdir%\" md "%fontsdir%"
if not exist "%fontsdir%\" goto :no_fontsdir
|