summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRay Johnston <ray.johnston@artifex.com>2020-04-23 18:22:15 -0700
committerRay Johnston <ray.johnston@artifex.com>2020-04-24 08:36:51 -0700
commit01b1eb1ef43952026ed8bf8728744522abfbfc19 (patch)
treed48d126d2487bdfb69825c7d2e88057632492b63 /lib
parentf69f7a2c8b05c3f8a4e14d30453dcb599ca8b64d (diff)
downloadghostpdl-01b1eb1ef43952026ed8bf8728744522abfbfc19.tar.gz
Fix gssetgs.bat to use either 32 or 64 bit executables (64-bit preferred).
Diffstat (limited to 'lib')
-rw-r--r--lib/gssetgs.bat3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gssetgs.bat b/lib/gssetgs.bat
index e28056177..7c0b80008 100644
--- a/lib/gssetgs.bat
+++ b/lib/gssetgs.bat
@@ -2,13 +2,16 @@
rem Set default values for GS (gs with graphics window) and GSC
rem (console mode gs) if the user hasn't set them.
+rem if 64-bit version is available, prefer that.
if NOT %GS%/==/ goto :gsset
if EXIST %~dp0..\bin\gswin32.exe set GS=%~dp0..\bin\gswin32
+if EXIST %~dp0..\bin\gswin64.exe set GS=%~dp0..\bin\gswin64
if %GS/==/ set GS=gswin32
:gsset
if NOT %GSC%/==/ goto :gscset
if EXIST %~dp0..\bin\gswin32c.exe set GSC=%~dp0..\bin\gswin32c
+if EXIST %~dp0..\bin\gswin64c.exe set GS=%~dp0..\bin\gswin64c
if %GSC%/==/ set GSC=gswin32c
:gscset