]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/windows/lily-gs.sh
release: 1.5.23
[lilypond.git] / Documentation / windows / lily-gs.sh
1 #!@SHELL@
2 # /etc/profile.d/lily-gs.sh -- Check for GhostScript and GSView
3
4
5 gs550="/usr/windows/gstools/gs5.50"
6 gs650="/usr/windows/gs/gs6.50/bin"
7
8 gsview26="/usr/windows/gstools/gsview"
9 gsview36="/usr/windows/Ghostgum/GSview"
10
11 # Maybe read registry, but that may be hairy?
12
13 # $ regtool get \\HKLM\\Software\\CLASSES\\psfile\\shell\\open\\command\\
14 # "C:\GSTOOLS\GSVIEW\gsview32.exe" "%1"
15
16
17
18 ## we set GS_LIB although the registry keys have been set.
19 ##  
20
21 if [ -e "$gs550/gswin32.exe" ]; then
22         PATH="$gs550:$PATH"
23     GS_LIB='C:\cygwin\usr\windows\gs\gs5.50\lib'
24 fi
25
26 if [ -e "$gs650/gswin32.exe" ]; then
27         PATH="$gs650:$PATH"
28     GS_LIB='C:\cygwin\usr\windows\gs\gs6.50\lib'
29 fi
30
31 if [ -e "$gsview26/gsview32.exe" ]; then
32         PATH="$gsview26:$PATH"
33 fi
34
35 if [ -e "$gsview36/gsview32.exe" ]; then
36         PATH="$gsview36:$PATH"
37 fi
38
39
40
41
42 export GS_LIB 
43 export PATH