2 # /etc/postinstall/post-gs.sh -- Install GS and GSView
5 gs550="/usr/windows/gstools/gs5.50"
6 gs650="/usr/windows/gs/gs6.50"
8 gsview26="/usr/windows/gstools/gsview"
9 gsview36="/usr/windows/Ghostgum/GSview"
11 # maybe set this too, but how (what type is value, a list?)
12 # $ regtool get \\HKLM\\Software\\CLASSES\\psfile\\shell\\open\\command\\
13 # "C:\GSTOOLS\GSVIEW\gsview32.exe" "%1"
15 # gsview needs gs register entries, so it seems
17 if [ -e "$gs550/gswin32.exe" ]; then
18 regtool -s set 'HKLM\Software\Aladdin Ghostscript\5.50\GS_LIB' \
19 "c:\cygwin\windows\gstools\gs5.50;c:\cygwin\windows\gstools\gs5.50\fonts"
20 regtool -s set 'HKLM\Software\Aladdin Ghostscript\5.50\GS_DLL' \
21 "c:\cygwin\windows\gstools\gs5.50\\gsdll32.dll"
24 if [ -e "$gs650/gswin32.exe" ]; then
25 regtool -s set 'HKLM\Software\AFPL Ghostscript\6.50\GS_DLL' \
26 "C:\cygwin\windows\gs\gs6.50\bin\gsdll32.dll"
27 regtool -s set 'HKLM\Software\AFPL Ghostscript\6.50\GS_LIB' \
28 "C:\cygwin\windows\gs\gs6.50\lib;C:\cygwin\windows\gs\fonts"
32 if [ -e "$gsview26/gsview32.exe" ]; then
36 if [ -e "$gsview36/gsview32.exe" ]; then
37 regtool -s set 'HKLM\Software\Ghostgum\GSview\3.6' \
38 "C:\cygwin\windows\Ghostgum"
41 # What's in the registry
43 # regtool -v list HKLM\Software\Aladdin Ghostscript\5.50
44 # GS_LIB = "c:\cygwin\windows\gstools\gs5.50;c:\cygwin\windows\gstools\gs5.50\fonts"
45 # GS_DLL = "c:\cygwin\windows\gstools\gs5.50\\gsdll32.dll"
47 # regtool -v list HKLM\Software\Ghostgum\GSview
48 # 3.6 = "C:\cygwin\windows\Ghostgum"
50 # regtool -v list HKLM\Software\AFPL Ghostscript\6.50
51 # GS_DLL = "C:\cygwin\windows\gs\gs6.50\bin\gsdll32.dll"
52 # GS_LIB = "C:\cygwin\windows\gs\gs6.50\lib;C:\cygwin\windows\gs\fonts"