summaryrefslogtreecommitdiff
path: root/Master/tlpkg/doc/install-w32client.bat
blob: 0d22ada6688f115ac00238b79a67700e6e1aeac9 (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
@echo off

rem copy this file and install-w32client to the same directory
rem as texmf, texmf-dist etc.

rem TeX Live Root; ends with backslash
rem This may also work with UNC names

set texdir=%~dp0
set tldrive=%~d0

%tldrive%
cd %texdir%

rem use provided Perl

set PERL5SAVE=%PERL5LIB%
set PERL5LIB=%texdir%tlpkg\tlperl\lib;%texdir%tlpkg
"%texdir%tlpkg\tlperl\bin\perl" "%~dpn0" %*
rem pause Done

rem cleanup in case of start from command-line

set PERL5LIB=%PERL5SAVE%
set PERL5SAVE=
set tldrive=
set texdir=
pause