]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/windows/lily-gs.sh
patch::: 1.5.0.jcn1
[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 if [ -e "$gs550/gswin32.exe" ]; then
18         PATH="$gs550:$PATH"
19 fi
20
21 if [ -e "$gs650/gswin32.exe" ]; then
22         PATH="$gs650:$PATH"
23 fi
24
25 if [ -e "$gsview26/gsview32.exe" ]; then
26         PATH="$gsview26:$PATH"
27 fi
28
29 if [ -e "$gsview36/gsview32.exe" ]; then
30         PATH="$gsview36:$PATH"
31 fi