summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2009-05-09 16:51:21 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2009-05-09 16:51:21 +0000
commitee5e6b02a074f66c2221a751284bb9de3b06ee43 (patch)
treef86686905220f8d0acaccdfe2d60713a2c733186
parent8ab401f2568d1d5227a3201a82d62a9588f173fb (diff)
fixed some typos
git-svn-id: svn://tug.org/texlive/branches/branch2009-dev@13023 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/bin/win32/dviout.bat8
1 files changed, 5 insertions, 3 deletions
diff --git a/Master/bin/win32/dviout.bat b/Master/bin/win32/dviout.bat
index 211a3121fd9..702c734764e 100755
--- a/Master/bin/win32/dviout.bat
+++ b/Master/bin/win32/dviout.bat
@@ -4,6 +4,8 @@ rem
rem Copyright 2009 by Siep Kroonenberg and Tomasz M. Trzeciak
rem Public Domain
+rem Make environment changes local
+rem Disable delayed expansion (makes processing bang ! char easier)
setlocal enableextensions disabledelayedexpansion
rem Ask kpsewhich for TLROOT and TEXMFVAR
@@ -50,13 +52,13 @@ if "%~0"==";" set tfmpath=
rem Finish if no more arguments to process
if "%~1"=="" goto :eof
rem Get short path (dviout has problems with long ones)
-set fontsdir=%~f1
+set fontsdir=%~sf1
rem Substitute "\fonts\tfm" in dir name with a marker
rem String substitution in expanded vars is case insensitive
set fontsdir=%fontsdir:\fonts\tfm=\fonts;%
-rem Continue if no substitution
+rem Continue if no substitution
if "%fontsdir%"=="%~sf1" goto :build_tfmpath
-rem Split dir name on marker; this leaves us with "...\fonts" dir
+rem Split dir name on the marker; this leaves us with a "...\fonts" dir
for /f "delims=;" %%I in ("%fontsdir%") do (set fontsdir=%%~sfI)
rem Continue if dir does not exist
if not exist "%fontsdir%\" goto :build_tfmpath