summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gssetgs.bat')
-rw-r--r--lib/gssetgs.bat14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/gssetgs.bat b/lib/gssetgs.bat
new file mode 100644
index 00000000..e2805617
--- /dev/null
+++ b/lib/gssetgs.bat
@@ -0,0 +1,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\gswin32.exe set GS=%~dp0..\bin\gswin32
+if %GS/==/ set GS=gswin32
+:gsset
+
+if NOT %GSC%/==/ goto :gscset
+if EXIST %~dp0..\bin\gswin32c.exe set GSC=%~dp0..\bin\gswin32c
+if %GSC%/==/ set GSC=gswin32c
+:gscset