From 53ca05830d2563c77490779aa16f17a0bc35d4d6 Mon Sep 17 00:00:00 2001 From: Piotr Strzelczyk Date: Mon, 15 Aug 2011 23:28:01 +0000 Subject: fixes for special chars & double quotes git-svn-id: svn://tug.org/texlive/trunk@23570 c570f23f-e606-0410-a88d-b1316a301751 --- Master/install-tl.bat | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Master/install-tl.bat') 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: -- cgit v1.2.3