summaryrefslogtreecommitdiff
path: root/lib/gssetgs64.bat
blob: 4bdd367a83a51678573de5f6b36a4acca342e65f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@echo off

rem Set default values for GS (gs with graphics window) and GSC
rem (console mode gs) if the user hasn't set them.

if NOT %GS%/==/ goto :gsset
if EXIST %~dp0..\bin\gswin64.exe set GS=%~dp0..\bin\gswin64
if %GS/==/ set GS=gswin64
:gsset

if NOT %GSC%/==/ goto :gscset
if EXIST %~dp0..\bin\gswin64c.exe set GSC=%~dp0..\bin\gswin64c
if %GSC%/==/ set GSC=gswin64c
:gscset