summaryrefslogtreecommitdiff
path: root/scripts/context/stubs/mswin/setuptex.bat
blob: 5f30bfd4e46ad58b10f5ba68205a6c9109a89b86 (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
44
45
46
@ECHO OFF

REM author: Hans Hagen - PRAGMA ADE - Hasselt NL - www.pragma-ade.com

:userpath

if "%SETUPTEX%"=="done" goto done

if "%~s1"=="" goto selftest

set TEXMFOS=%~s1texmf-mswin-64
if exist %TEXMFOS%\bin\mtxrun.exe goto start

set TEXMFOS=%~s1\texmf-mswin-64
if exist %TEXMFOS%\bin\mtxrun.exe goto start

set TEXMFOS=%~s1texmf-mswin
if exist %TEXMFOS%\bin\mtxrun.exe goto start

set TEXMFOS=%~s1\texmf-mswin
if exist %TEXMFOS%\bin\mtxrun.exe goto start

:selftest

set TEXMFOS=%~d0%~p0texmf-mswin-64
if exist %TEXMFOS%\bin\mtxrun.exe goto start

set TEXMFOS=%~d0%~p0\texmf-mswin-64
if exist %TEXMFOS%\bin\mtxrun.exe goto start

set TEXMFOS=%~d0%~p0texmf-mswin
if exist %TEXMFOS%\bin\mtxrun.exe goto start

set TEXMFOS=%~d0%~p0\texmf-mswin
if exist %TEXMFOS%\bin\mtxrun.exe goto start

:start

set PATH=%TEXMFOS%\bin;%PATH%

:register

set SETUPTEX=done
set CTXMINIMAL=yes

:done