]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/windows/post-gs.sh
patch::: 1.3.149.jcn1
[lilypond.git] / Documentation / windows / post-gs.sh
1 #!@SHELL@
2 # /etc/postinstall/post-gs.sh -- Install GS and GSView
3
4
5 gs550="/usr/windows/gstools/gs5.50"
6 gs650="/usr/windows/gs/gs6.50"
7
8 gsview26="/usr/windows/gstools/gsview"
9 gsview36="/usr/windows/Ghostgum/GSview"
10
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"
14
15 # gsview needs gs register entries, so it seems
16
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"
22 fi
23
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"
29 fi
30
31 # nothing to be done
32 if [ -e "$gsview26/gsview32.exe" ]; then
33         true
34 fi
35
36 if [ -e "$gsview36/gsview32.exe" ]; then
37         regtool -s set 'HKLM\Software\Ghostgum\GSview\3.6' \
38                 "C:\cygwin\windows\Ghostgum"
39 fi
40
41 # What's in the registry
42
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"
46
47 #  regtool -v list HKLM\Software\Ghostgum\GSview
48 #  3.6 = "C:\cygwin\windows\Ghostgum"
49
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"
53
54