summaryrefslogtreecommitdiff
path: root/Master/bin/win32/tlmgr2.bat
blob: 2d112e3f11026c5055b4408dc8e3557aecf05f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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