diff options
author | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-07-25 17:27:49 +0000 |
---|---|---|
committer | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-07-25 17:27:49 +0000 |
commit | 75ebccd2761ef89b4cd2ccf6a549138a0dd3ac50 (patch) | |
tree | 3fbc04ee962a34315480a71ef5f6b0a4bf59b612 /Master/bin | |
parent | 06edf38473f196050999ba07f8eb5993323964d6 (diff) |
fix for parameter expansion of a drive root
git-svn-id: svn://tug.org/texlive/trunk@14444 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin')
-rwxr-xr-x | Master/bin/win32/dviout.bat | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Master/bin/win32/dviout.bat b/Master/bin/win32/dviout.bat index 0bbba5e44f0..d2970477995 100755 --- a/Master/bin/win32/dviout.bat +++ b/Master/bin/win32/dviout.bat @@ -1,7 +1,7 @@ @echo off
rem Wrapper script to configure and call dviout
rem
-rem Copyright 2009 by Siep Kroonenberg and Tomasz M. Trzeciak
+rem Originally written 2009 by Siep Kroonenberg and Tomasz M. Trzeciak
rem Public Domain
rem Make environment changes local
@@ -14,12 +14,10 @@ for %%I in ("%~f0\..") do path %%~fI;%path% rem Ask kpsewhich for TLROOT and TEXMFVAR
set tlroot=
for /f "tokens=1,2 delims=;" %%I in (
- 'kpsewhich --expand-var "$SELFAUTOPARENT;$TEXMFVAR"'
+ 'kpsewhich --expand-var "$SELFAUTOPARENT/.;$TEXMFVAR/."'
) do (
- 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
+ set tlroot=%%~sfI
+ set fontsdir=%%~fJ\fonts
)
if not defined tlroot goto :no_tl
if not exist "%fontsdir%\" md "%fontsdir%"
|