summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2009-11-06 23:54:05 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2009-11-06 23:54:05 +0000
commitdf97c7576b7b5360ead1ff807b589a81f380f418 (patch)
treec4ed152b47278d54e51a71416ebf3eed9aa2cba7
parent07e6b743b2b78cf958a6e205a8ef5cd7f00cc55d (diff)
fix path processing
git-svn-id: svn://tug.org/texlive/trunk@15942 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/install-tl.bat5
1 files changed, 3 insertions, 2 deletions
diff --git a/Master/install-tl.bat b/Master/install-tl.bat
index 1b7642bdf5e..c47e93d4345 100755
--- a/Master/install-tl.bat
+++ b/Master/install-tl.bat
@@ -20,9 +20,10 @@ cd /d %~dp0
rem Break search path into dir list and rebuild w/o tex dirs
call :rebuildpath ";" "%path:;=" "%"
+if "%path:~0,1%"==";" set path=%path:~1%
rem Use TL Perl
-path %~dp0tlpkg\tlperl\bin;%path%
+set path=%~dp0tlpkg\tlperl\bin;%path%
set PERL5LIB=%~dp0tlpkg\tlperl\lib
rem Start installer
@@ -42,7 +43,7 @@ if [%1]==[] goto :eof
rem Continue if tex dir
if exist "%~1\pdftex.exe" goto :rebuildpath
rem Add dir to path
-if not defined path (path %~1) else (path %path%;%~1)
+set path=%path%;%~1
goto :rebuildpath
rem About install-tl.bat.manifest: