summaryrefslogtreecommitdiff
path: root/Master/bin/win32/tlmgr.bat
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2009-07-31 08:39:38 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2009-07-31 08:39:38 +0000
commit03c92bbe61083ce86555a61af2cd0f7132847e29 (patch)
treee16856f77f9943b27a45bbbac14d37fd1819c54f /Master/bin/win32/tlmgr.bat
parentfdd58bdd9721a150e6b9e576e18e7a8c975f06ff (diff)
tlmgr update --self on win32
Changes to tlmgr.pl: - check_for_critical_updates returns a critical updates list instead of 0/1 - warning message moved to critical_updates_warning() - some code clean-up, superfluous conditions removal - filtering of critical packages from @todo _after_ dependency expansion - support for tlmgr update --all --self --dry-run (recursive call to action_update) - documentation updates Changes to updater-w32: - renamed updater-w32.bat to updater-w32 (cannot be executed accidentally) - merged run-updater-w32 into updater-w32, arguments and options are passed through a subroutine appended at the end of updater-w32 at run-time - support for debug mode - reflect changes in tlmgr.bat and docs git-svn-id: svn://tug.org/texlive/trunk@14500 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/win32/tlmgr.bat')
-rwxr-xr-xMaster/bin/win32/tlmgr.bat15
1 files changed, 5 insertions, 10 deletions
diff --git a/Master/bin/win32/tlmgr.bat b/Master/bin/win32/tlmgr.bat
index 8f72641d00b..03536cb9c88 100755
--- a/Master/bin/win32/tlmgr.bat
+++ b/Master/bin/win32/tlmgr.bat
@@ -1,8 +1,8 @@
@echo off
rem Advanced launcher for tlmgr with auto-update
rem
-rem Copyright 2009 by Tomasz M. Trzeciak
rem Public Domain
+rem Originally written 2009 by Tomasz M. Trzeciak
rem Make environment changes local
setlocal enableextensions
@@ -11,7 +11,7 @@ rem Get TL installation root (it should be two levels up)
for %%I in ("%~dp0..\..") do (set tlroot=%%~fI)
rem Remove remains of previous update if any
-(set tlupdatername=run-updater-w32)
+(set tlupdatername=updater-w32)
(set tlupdater=%tlroot%\temp\%tlupdatername%)
if exist "%tlupdater%*" del "%tlupdater%*"
if exist "%tlupdater%*" goto :err_updater_exists
@@ -24,20 +24,15 @@ perl "%tlroot%\texmf\scripts\texlive\tlmgr.pl" %*
rem Finish if there are no updates to do; the last error code will be returned
if not exist "%tlupdater%" goto :eof
rem Rename updater script before it is run
-ren "%tlupdater%" "%tlupdatername%.bat"
+ren "%tlupdater%" "%tlupdatername%.bat">nul
if errorlevel 1 goto :err_rename_updater
rem Run updater
-echo Starting update ...
endlocal & call "%tlupdater%.bat" & goto :eof
:err_updater_exists
-echo %~n0: cannot remove update script, infrastructure update might be in progress>&2
+echo %~nx0: updater script detected, infrastructure update might be running>&2
exit /b 1
:err_rename_updater
-echo %~n0: cannot rename "%tlupdater%">&2
+echo %~nx0: cannot rename "%tlupdater%" to "%tlupdatername%.bat">&2
exit /b 1
-
-:err_OS
-echo Unsupported operating system. Windows 2000 or later required.
-pause