summaryrefslogtreecommitdiff
path: root/Master/tlpkg/bin/uninstall-tl.bat
blob: ed18ef8010f66e09aa4dd00d519dba2aec7906b1 (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 TeX Live Root; ends with backslash
rem This should also work with UNC names
set tlroot=%~dp0
set tldrive=%~d0

%tldrive%
cd %tlroot%

rem use provided Perl

set PERL5SAVE=%PERL5LIB%

set PERL5LIB=%tlroot%..\tlperl\lib
"%tlroot%..\tlperl\bin\perl" "%tlroot%uninstall-tl.pl" %*
rem pause Done

rem cleanup in case of start from command-line

set PERL5LIB=%PERL5SAVE%
set PERL5SAVE=
set tldrive=
set tlroot=