summaryrefslogtreecommitdiff
path: root/Master/install-tl.bat
diff options
context:
space:
mode:
Diffstat (limited to 'Master/install-tl.bat')
-rwxr-xr-xMaster/install-tl.bat18
1 files changed, 5 insertions, 13 deletions
diff --git a/Master/install-tl.bat b/Master/install-tl.bat
index a0d1837ada2..d3ade37b586 100755
--- a/Master/install-tl.bat
+++ b/Master/install-tl.bat
@@ -1,7 +1,7 @@
@echo off
+setlocal
rem TeX Live Root; ends with backslash
-rem This should also work with UNC names
set tlroot=%~dp0
set tldrive=%~d0
@@ -9,25 +9,17 @@ set tldrive=%~d0
cd %tlroot%
rem we need wget in the path, so add tlpkg\bin to the path
-set pathsave=%path%
path %tlroot%tlpkg\installer;%path%
-rem use provided Perl
-
-set PERL5SAVE=%PERL5LIB%
+rem We shouldn't have to add TL to the searchpath here, but we do
+path %tlroot%bin\win32;%path%
+rem use provided Perl
set PERL5LIB=%tlroot%tlpkg\installer\perllib
"%tlroot%tlpkg\installer\perl" "%~dpn0" %*
pause Done
-rem cleanup in case of start from command-line
-
-set PERL5LIB=%PERL5SAVE%
-set PERL5SAVE=
-path %pathsave%
-set pathsave=
-set tldrive=
-set tlroot=
+rem endlocal is implicit
rem About install-tl.bat.manifest:
rem Vista assumes that a file with install in the name is