summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2009-07-25 17:27:49 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2009-07-25 17:27:49 +0000
commit75ebccd2761ef89b4cd2ccf6a549138a0dd3ac50 (patch)
tree3fbc04ee962a34315480a71ef5f6b0a4bf59b612 /Master
parent06edf38473f196050999ba07f8eb5993323964d6 (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')
-rwxr-xr-xMaster/bin/win32/dviout.bat10
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%"