summaryrefslogtreecommitdiff
path: root/Master/bin
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2009-01-19 11:59:04 +0000
committerNorbert Preining <preining@logic.at>2009-01-19 11:59:04 +0000
commit5479fe2b1b2a3c99963f808a8ac30b7cb68d1cdc (patch)
tree578d3dddb1e42ef5e616bda8aacc586c36888496 /Master/bin
parent2d43a1a3e63fe6a591d7e64c694434e451d4f561 (diff)
include Tomeks rework on tlmgr2 auto-update if available.
Needs rewording of some messages ... git-svn-id: svn://tug.org/texlive/trunk@11914 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin')
-rwxr-xr-xMaster/bin/win32/tlmgr2.bat27
1 files changed, 27 insertions, 0 deletions
diff --git a/Master/bin/win32/tlmgr2.bat b/Master/bin/win32/tlmgr2.bat
new file mode 100755
index 00000000000..2d112e3f110
--- /dev/null
+++ b/Master/bin/win32/tlmgr2.bat
@@ -0,0 +1,27 @@
+@echo off
+rem Advanced started for tlmgr2 with auto-update
+rem Copyright 2009 by Tomek ????? <t34www@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 Start tlmgr
+"%TLdir%\tlpkg\tlperl\bin\perl.exe" "%TLdir%\texmf\scripts\texlive\tlmgr2.pl" %*
+
+set "updater=%TLdir%\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%
+
+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