summaryrefslogtreecommitdiff
path: root/Master/bin
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin')
-rwxr-xr-xMaster/bin/win32/tlmgr2.bat21
1 files changed, 9 insertions, 12 deletions
diff --git a/Master/bin/win32/tlmgr2.bat b/Master/bin/win32/tlmgr2.bat
index a9906bdb9f9..3227c961498 100755
--- a/Master/bin/win32/tlmgr2.bat
+++ b/Master/bin/win32/tlmgr2.bat
@@ -1,27 +1,24 @@
@echo off
rem Advanced started for tlmgr2 with auto-update
-rem Copyright 2009 by Tomasz M. Trzeciak <t34www@googlemail.com>
+rem Copyright 2009 by Tomasz M. Trzeciak <t.m.trzeciak@googlemail.com>
rem Public Domain
rem
setlocal
-
-for %%P in ("%~dp0..\..") do set "TLdir=%%~fP"
-set PERL5LIB=%TLdir%\tlpkg\tlperl\lib
-path %TLdir%\tlpkg\installer;%path%
+rem TL installation root
+for %%P in ("%~dp0..\..") do set "tlroot=%%~fP"
rem Start tlmgr
-"%TLdir%\tlpkg\tlperl\bin\perl.exe" "%TLdir%\texmf\scripts\texlive\tlmgr2.pl" %*
+set PERL5LIB=%tlroot%\tlpkg\tlperl\lib
+"%tlroot%\tlpkg\tlperl\bin\perl.exe" "%tlroot%\texmf\scripts\texlive\tlmgr2.pl" %*
-set "updater=%TLdir%\tlpkg\installer\updater.bat"
+rem Check for updater script
+set "updater=%tlroot%\tlpkg\installer\updater.bat"
if not exist "%updater%" exit /b
if exist "%updater%.bat" del "%updater%.bat"
ren "%updater%" updater.bat.bat
-if errorlevel 1 exit /b %errorlevel%
+if errorlevel 1 exit /b 1
rem Run updater script
-echo Performing an update. Do not close this window.
-rem Check for updater script
-rem unset echo off so that we see what is going on with updater.bat
-@echo on
endlocal & call "%updater%.bat" & exit /b
+