summaryrefslogtreecommitdiff
path: root/Master/install-tl.bat
blob: d3ade37b58643b30c404701d153ccbe5b44024fa (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
setlocal

rem TeX Live Root; ends with backslash
set tlroot=%~dp0
set tldrive=%~d0

%tldrive%
cd %tlroot%

rem we need wget in the path, so add tlpkg\bin to the path
path %tlroot%tlpkg\installer;%path%

rem We shouldn't have to add TL to the searchpath here, but we do
path %tlroot%bin\win32;%path%

rem use provided Perl
set PERL5LIB=%tlroot%tlpkg\installer\perllib
"%tlroot%tlpkg\installer\perl" "%~dpn0" %*
pause Done

rem endlocal is implicit

rem About install-tl.bat.manifest:
rem Vista assumes that a file with install in the name is
rem an installer and therefore requires administrative privileges.
rem The manifest file tells Vista otherwise.