diff options
author | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-11-01 23:03:08 +0000 |
---|---|---|
committer | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-11-01 23:03:08 +0000 |
commit | 6c933ffb1ea6ac53b2507daa0ccc6ea85ca47e36 (patch) | |
tree | 406fe6a6eddf62fdbb3c5fcf7299adbc0fa16eb5 /Master/bin | |
parent | 79c954aa68391755d79cbba97b1976bd4ea2e7ad (diff) |
workaround for short name expansion bug in cmd.exe
git-svn-id: svn://tug.org/texlive/trunk@15928 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin')
-rwxr-xr-x | Master/bin/win32/dviout.bat | 4 | ||||
-rwxr-xr-x | Master/bin/win32/texworks.bat | 2 | ||||
-rw-r--r-- | Master/bin/win32/tl-w32-wrapper.cmd | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Master/bin/win32/dviout.bat b/Master/bin/win32/dviout.bat index b3eaa6cfb0f..8a9105ac97e 100755 --- a/Master/bin/win32/dviout.bat +++ b/Master/bin/win32/dviout.bat @@ -17,7 +17,7 @@ path %tlroot%\bin\win32;%path% rem Ask kpsewhich for TEXMFVAR
for /f "delims=" %%I in (
- '%~sdp0kpsewhich.exe --expand-var "$TEXMFVAR/fonts"'
+ 'call "%~dp0kpsewhich.exe" --expand-var "$TEXMFVAR/fonts"'
) do (
set fontsdir=%%~fI
)
@@ -26,7 +26,7 @@ if not exist "%fontsdir%\" goto :no_fontsdir rem Ask kpsewhich for TFM search path
for /f "delims=" %%I in (
- '%~sdp0kpsewhich.exe --show-path tfm'
+ 'call "%~dp0kpsewhich.exe" --show-path tfm'
) do (
set tfmpath=%%I
)
diff --git a/Master/bin/win32/texworks.bat b/Master/bin/win32/texworks.bat index c5ca9740674..ad0002717e5 100755 --- a/Master/bin/win32/texworks.bat +++ b/Master/bin/win32/texworks.bat @@ -11,7 +11,7 @@ set TEXROOT=%TEXROOT:\bin\win32\:=% rem Add bin dir to path
path %TEXROOT%\bin\win32;%PATH%
rem Ask kpsewhich about TEXMFCONFIG location
-for /f "delims=" %%I in ('%~sdp0kpsewhich.exe --var-value=TEXMFCONFIG') do (
+for /f "delims=" %%I in ('call "%~dp0kpsewhich.exe" --var-value=TEXMFCONFIG') do (
set TW_INIPATH=%%~fI\texworks
set TW_LIBPATH=%%~fI\texworks
)
diff --git a/Master/bin/win32/tl-w32-wrapper.cmd b/Master/bin/win32/tl-w32-wrapper.cmd index ce0d0d24346..abf2bf1578e 100644 --- a/Master/bin/win32/tl-w32-wrapper.cmd +++ b/Master/bin/win32/tl-w32-wrapper.cmd @@ -28,7 +28,7 @@ rem and location of the script (the second line of output) rem (4NT shell acts wierd with 'if' statements in a 'for' loop, rem so better process this output further in a subroutine) for /f "tokens=1-2 delims=;" %%I in ( - '%~sdp0kpsewhich.exe --expand-var "$TEXMFSYSCONFIG/?;$TEXMFSYSVAR/?" --format texmfscripts ^ + 'call "%~dp0kpsewhich.exe" --expand-var "$TEXMFSYSCONFIG/?;$TEXMFSYSVAR/?" --format texmfscripts ^ "%TL_PROGNAME%.pl" "%TL_PROGNAME%.tlu" "%TL_PROGNAME%.rb" "%TL_PROGNAME%.py"' ) do ( call :setcmdenv "%%~I" "%%~J" |