summaryrefslogtreecommitdiff
path: root/Master/bin/win32/tlmgr2.bat
blob: 3227c961498babda71d73c35574693e21818cb1e (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
@echo off
rem Advanced started for tlmgr2 with auto-update
rem Copyright 2009 by Tomasz M. Trzeciak <t.m.trzeciak@googlemail.com>
rem Public Domain
rem

setlocal
rem TL installation root
for %%P in ("%~dp0..\..") do set "tlroot=%%~fP"

rem Start tlmgr
set PERL5LIB=%tlroot%\tlpkg\tlperl\lib
"%tlroot%\tlpkg\tlperl\bin\perl.exe" "%tlroot%\texmf\scripts\texlive\tlmgr2.pl" %*

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 1

rem Run updater script
endlocal & call "%updater%.bat" & exit /b