summaryrefslogtreecommitdiff
path: root/Master/bin
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-01-19 17:28:49 +0000
committerNorbert Preining <preining@logic.at>2009-01-19 17:28:49 +0000
commit5fa9b92e3aceb82b4b0730c725d86424f0e1af78 (patch)
tree92b23576b76a5162d640d576f4a8e32de28c038a /Master/bin
parentd4f51a125407d5711cbdd86302ea9d168a0b2a03 (diff)
more updates to tlmgr2 auto-self-update by Tomek
git-svn-id: svn://tug.org/texlive/trunk@11916 c570f23f-e606-0410-a88d-b1316a301751
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
+