]> git.donarmstrong.com Git - lilypond.git/blob - cygwin/postinstall-lilypond.sh
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / cygwin / postinstall-lilypond.sh
1 #!@SHELL@
2 # /etc/postinstall/lilypond.sh  -- Setup LilyPond
3
4 # register .ly
5 ROOT=$(cygpath -w /)
6 [ -z "$ROOT" ] && ROOT=$(regtool get '/machine/Software/Cygnus Solutions/Cygwin/mounts v2/\\\//native')
7 [ -z "$ROOT" ] && ROOT=$(cat '/proc/registry/HKEY_LOCAL_MACHINE/Software/Cygnus Solutions/Cygwin/mounts v2/\\\//native')
8 [ -z "$ROOT" ] && ROOT='c:\cygwin'
9
10 regtool add '/root/.ly'
11 regtool set '/root/.ly/' 'LilyPond'
12 regtool set '/root/.ly/Content Type' 'text/lilypond-source'
13 regtool add '/root/LilyPond'
14 regtool set '/root/LilyPond/' 'LilyPond source'
15 regtool add '/root/LilyPond/shell'
16 regtool add '/root/LilyPond/shell/open'
17 regtool add '/root/LilyPond/shell/open/command'
18
19 regtool set '/root/LilyPond/shell/open/command/' $ROOT'\bin\bash.exe --login -c '"'"'/usr/bin/lily-wins "%1"'"'"
20 regtool add '/root/LilyPond/shell/edit'
21 regtool set '/root/LilyPond/shell/edit/' '&Edit source in Notepad ...'
22 regtool add '/root/LilyPond/shell/edit/command'
23 regtool set '/root/LilyPond/shell/edit/command/' '%SystemRoot%\system32\notepad.exe %1'
24 regtool add '/root/LilyPond/shell/generate'
25 regtool set '/root/LilyPond/shell/generate/' '&Generate PDF ...'
26 regtool add '/root/LilyPond/shell/generate/command'
27 regtool set '/root/LilyPond/shell/generate/command/' $ROOT'\bin\bash.exe --login -c '"'"'/usr/bin/lily-wins "%1"'"'"
28
29 (cd /usr/share/info/lilypond && ln -sf ../../doc/lilypond/Documentation/user/out-www/*png .)