summaryrefslogtreecommitdiff
path: root/Master/bin/win32/dviout.bat
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2009-05-14 19:51:48 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2009-05-14 19:51:48 +0000
commit55d04ac2ee6793593b745e4e2ea0935a39f07ee6 (patch)
tree6ea8526a742509ead71900532b272fae6bd84e8c /Master/bin/win32/dviout.bat
parent45bedb3177b9154e6f33b56b7dfb74f9eac5b558 (diff)
switch dviout to .bat launcher; add bin dir to path in launcher
git-svn-id: svn://tug.org/texlive/trunk@13086 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/win32/dviout.bat')
-rwxr-xr-xMaster/bin/win32/dviout.bat7
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/bin/win32/dviout.bat b/Master/bin/win32/dviout.bat
index ac5a76255fc..d09e13602f9 100755
--- a/Master/bin/win32/dviout.bat
+++ b/Master/bin/win32/dviout.bat
@@ -8,10 +8,13 @@ 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 Ask kpsewhich for TLROOT and TEXMFVAR
set tlroot=
for /f "tokens=1,2 delims=;" %%I in (
- '"%~dp0kpsewhich.exe" --expand-var "$SELFAUTOPARENT;$TEXMFVAR"'
+ 'kpsewhich --expand-var "$SELFAUTOPARENT;$TEXMFVAR"'
) do (
set tlroot=%%~sfI
set fontsdir=%%~fJ\fonts
@@ -22,7 +25,7 @@ if not exist "%fontsdir%\" goto :no_fontsdir
rem Ask kpsewhich for TFM search path
for /f "delims=" %%I in (
- '"%~dp0kpsewhich.exe" --show-path tfm'
+ 'kpsewhich --show-path tfm'
) do (
set tfmpath=%%I
)