summaryrefslogtreecommitdiff
path: root/scripts/context/stubs/mswin/setuptex.bat
blob: 52c60f155c79f0db64481c8f5d9ea697e2eb474f (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
@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
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
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