diff options
author | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-10-28 01:37:44 +0000 |
---|---|---|
committer | Piotr Strzelczyk <piotr@eps.gda.pl> | 2009-10-28 01:37:44 +0000 |
commit | 56f1dcb6044821b5693db90e718ac1fc57a3dbdc (patch) | |
tree | 2180dd8806cd6c897bc2f0997adf1ae6ee414bb1 | |
parent | b4ee93a0a6435f8ed98a7d18a3af4d7bd5bb592a (diff) |
call programs with absolute paths
git-svn-id: svn://tug.org/texlive/trunk@15898 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/bin/win32/tl-w32-wrapper.cmd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/bin/win32/tl-w32-wrapper.cmd b/Master/bin/win32/tl-w32-wrapper.cmd index 0ae54aa24ed..ce0d0d24346 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 ( - 'kpsewhich.exe --expand-var "$TEXMFSYSCONFIG/?;$TEXMFSYSVAR/?" --format texmfscripts ^ + '%~sdp0kpsewhich.exe --expand-var "$TEXMFSYSCONFIG/?;$TEXMFSYSVAR/?" --format texmfscripts ^ "%TL_PROGNAME%.pl" "%TL_PROGNAME%.tlu" "%TL_PROGNAME%.rb" "%TL_PROGNAME%.py"' ) do ( call :setcmdenv "%%~I" "%%~J" @@ -62,8 +62,8 @@ goto :eof :setcmd script rem Set command based on the script extension -if /i %~x1==.pl set CMDLINE=Perl.exe "%~f1" -if /i %~x1==.tlu set CMDLINE=TeXLua.exe "%~f1" +if /i %~x1==.pl set CMDLINE="%TL_ROOT%\tlpkg\tlperl\bin\perl.exe" "%~f1" +if /i %~x1==.tlu set CMDLINE="%TL_ROOT%\bin\win32\texlua.exe" "%~f1" rem For Ruby and Python we additionally check if their interpreter is available if /i %~x1==.rb call :chkcmd Ruby.exe "%~f1" if /i %~x1==.py call :chkcmd Python.exe "%~f1" |