summaryrefslogtreecommitdiff
path: root/Master/install-tl.bat
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2011-08-15 23:28:01 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2011-08-15 23:28:01 +0000
commit53ca05830d2563c77490779aa16f17a0bc35d4d6 (patch)
treec7bb8c167d37f296cda90f8bec6b6257003a8e35 /Master/install-tl.bat
parent4dd96d119babb327ab1490770083eeab41ae478b (diff)
fixes for special chars & double quotes
git-svn-id: svn://tug.org/texlive/trunk@23570 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl.bat')
-rwxr-xr-xMaster/install-tl.bat13
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/install-tl.bat b/Master/install-tl.bat
index c47e93d4345..d40865a9561 100755
--- a/Master/install-tl.bat
+++ b/Master/install-tl.bat
@@ -16,15 +16,18 @@ rem Localize environment changes
setlocal enableextensions
rem Do we really need to cd to the batch location?
-cd /d %~dp0
+cd /d "%~dp0"
+
+rem Remove any double quotes from PATH (why we care for it at all???)
+set "path=%path:"=%"
rem Break search path into dir list and rebuild w/o tex dirs
call :rebuildpath ";" "%path:;=" "%"
-if "%path:~0,1%"==";" set path=%path:~1%
+if "%path:~0,1%"==";" set "path=%path:~1%"
rem Use TL Perl
-set path=%~dp0tlpkg\tlperl\bin;%path%
-set PERL5LIB=%~dp0tlpkg\tlperl\lib
+set "path=%~dp0tlpkg\tlperl\bin;%path%"
+set "PERL5LIB=%~dp0tlpkg\tlperl\lib"
rem Start installer
path
@@ -43,7 +46,7 @@ if [%1]==[] goto :eof
rem Continue if tex dir
if exist "%~1\pdftex.exe" goto :rebuildpath
rem Add dir to path
-set path=%path%;%~1
+set "path=%path%;%~1"
goto :rebuildpath
rem About install-tl.bat.manifest: