diff options
author | Ray Johnston <ray.johnston@artifex.com> | 2020-04-23 18:22:15 -0700 |
---|---|---|
committer | Ray Johnston <ray.johnston@artifex.com> | 2020-04-24 08:36:51 -0700 |
commit | 01b1eb1ef43952026ed8bf8728744522abfbfc19 (patch) | |
tree | d48d126d2487bdfb69825c7d2e88057632492b63 /lib | |
parent | f69f7a2c8b05c3f8a4e14d30453dcb599ca8b64d (diff) | |
download | ghostpdl-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.bat | 3 |
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 |