summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xMaster/bin/win32/asy.bat12
1 files changed, 8 insertions, 4 deletions
diff --git a/Master/bin/win32/asy.bat b/Master/bin/win32/asy.bat
index a41894d1c8b..b6c88ce7ab3 100755
--- a/Master/bin/win32/asy.bat
+++ b/Master/bin/win32/asy.bat
@@ -5,12 +5,16 @@ rem Copyright 2009 by Tomasz M. Trzeciak
rem Public Domain
setlocal enableextensions
+rem Get TL installation root (it should be two levels up)
+for %%I in ("%~dp0\..\..") do (set TLROOT=%%~fI)
+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 Add bin dir to PATH
-for %%I in ("%~f0\..") do path %%~fI;%PATH%
-rem psviewer and pdfviewer to psv
+rem Set asymptote options
+set ASYMPTOTE_GS=gswin32c.exe
set ASYMPTOTE_PSVIEWER=psv.bat
set ASYMPTOTE_PDFVIEWER=psv.bat
rem Call asy.exe
-"%~dp0..\..\tlpkg\asymptote\asy.exe" %*
+"%TLROOT%\tlpkg\asymptote\asy.exe" %*