summaryrefslogtreecommitdiff
path: root/Master/install-tl.bat
blob: 35e1eadde9c83e4937530a809d0f4ce8485478b1 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@echo off

rem test for existing TeX
tex -v >nul 2>&1
if errorlevel 1 goto doit
echo There is already a TeX! Are you sure you want to continue?
echo Abort installation with Ctrl-C or continue with any other key.
pause
:doit

rem TeX Live Root; ends with backslash
rem This should also work with UNC names
set tlroot=%~dp0
set tldrive=%~d0

%tldrive%
cd %tlroot%

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

rem use provided Perl

set PERL5SAVE=%PERL5LIB%

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

rem cleanup in case of start from command-line

set PERL5LIB=%PERL5SAVE%
set PERL5SAVE=
path %pathsave%
set pathsave=
set tldrive=
set tlroot=

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.