summaryrefslogtreecommitdiff
path: root/Master/bin/win32
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2009-07-06 22:37:17 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2009-07-06 22:37:17 +0000
commitb51040275dce020b30b347d6459afab59f150511 (patch)
treed46bdfd5f456794626c12864cab86d54a0b6cddb /Master/bin/win32
parentce9dc87c7ec8d84c200eae1389e48e09613b35f0 (diff)
configure asy for tlgs
git-svn-id: svn://tug.org/texlive/trunk@14161 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin/win32')
-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" %*