summaryrefslogtreecommitdiff
path: root/Master/bin/win32/asy.bat
blob: 0f953f5eff3333181aa57e0b82cca7d7f4342caa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@echo off
rem Start-up script for Asymptote
rem
rem Copyright 2009 by Tomasz M. Trzeciak
rem Public Domain

setlocal enableextensions
rem Get TL installation root (it should be two levels up)
rem Use short path, because of problems with spaces and calling batch files
for %%I in ("%~dp0\..\..") do (set TLROOT=%%~sfI)
rem Add gs and bin dir to PATH
path %TLROOT%\tlpkg\tlgs\bin;%TLROOT%\bin\win32;%PATH%
set GS_LIB=%TLROOT%\tlpkg\tlgs\lib;%TLROOT%\tlpkg\tlgs\fonts
rem Suppress cygwin warning about DOS paths
set CYGWIN=nodosfilewarning
rem Set asymptote options
set ASYMPTOTE_GS=gswin32c.exe
set ASYMPTOTE_PSVIEWER=psv.bat
set ASYMPTOTE_PDFVIEWER=psv.bat
rem Call asy.exe
"%TLROOT%\tlpkg\asymptote\asy.exe" %*