summaryrefslogtreecommitdiff
path: root/Master/install-tl.bat
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2008-11-01 10:52:32 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2008-11-01 10:52:32 +0000
commitdc2fea8b1c807868c2be43828d02062a02bef2f7 (patch)
tree7c716a2c908bb7ffb2c6b34d9749d25a47a3160e /Master/install-tl.bat
parent0905e40f1e54a86514368b7f28498bdd23554176 (diff)
Prepend <root>/bin/win32 to path; also use setlocal
git-svn-id: svn://tug.org/texlive/trunk@11149 c570f23f-e606-0410-a88d-b1316a301751
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