OLD | NEW |
1 #! /bin/sh | 1 #! /bin/sh |
2 | 2 |
3 me="$0" | 3 me="$0" |
4 root="$HOME" | 4 root="$HOME" |
5 doc=no | 5 doc=no |
6 extract=no | 6 extract=no |
7 interactive=yes | 7 interactive=yes |
8 arch=$(uname -m) | 8 arch=$(uname -m) |
9 | 9 |
10 if test `id -u` = "0"; then | 10 if test `id -u` = "0"; then |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 ##gtk##EOF | 205 ##gtk##EOF |
206 ##gtk## | 206 ##gtk## |
207 ##################### | 207 ##################### |
208 ### LilyPond wrappers | 208 ### LilyPond wrappers |
209 | 209 |
210 wrapscript="${bindir}/%(name)s-wrapper" | 210 wrapscript="${bindir}/%(name)s-wrapper" |
211 | 211 |
212 for interp in python guile; do | 212 for interp in python guile; do |
213 echo "Creating script $wrapscript.$interp" | 213 echo "Creating script $wrapscript.$interp" |
214 | 214 |
215 if test "$interp" = "guile"; then | |
216 callmain="-e main" | |
217 else | |
218 callmain="" | |
219 fi | |
220 | |
221 rm -f "$wrapscript.$interp" > /dev/null 2>&1 | 215 rm -f "$wrapscript.$interp" > /dev/null 2>&1 |
222 cat <<EOF > "$wrapscript.$interp" | 216 cat <<EOF > "$wrapscript.$interp" |
223 #!/bin/sh | 217 #!/bin/sh |
224 export PYTHONPATH="${prefix}/usr/lib/lilypond/current/python:${prefix}/usr/share
/lilypond/current/python:${dollar}PYTHONPATH" | 218 export PYTHONPATH="${prefix}/usr/lib/lilypond/current/python:${prefix}/usr/share
/lilypond/current/python:${dollar}PYTHONPATH" |
225 export GUILE_LOAD_PATH="${prefix}/usr/share/lilypond/current" | 219 export GUILE_LOAD_PATH="${prefix}/usr/share/lilypond/current" |
226 export LD_LIBRARY_PATH="${prefix}/usr/lib:${dollar}LD_LIBRARY_PATH" | 220 export LD_LIBRARY_PATH="${prefix}/usr/lib:${dollar}LD_LIBRARY_PATH" |
227 me=${backquote}basename ${dollar}0${backquote} | 221 me=${backquote}basename ${dollar}0${backquote} |
228 exec "${prefix}/usr/bin/$interp" ${callmain} "${prefix}/usr/bin/${dollar}me" $ex
pandargs | 222 exec "${prefix}/usr/bin/$interp" "${prefix}/usr/bin/${dollar}me" $expandargs |
229 EOF | 223 EOF |
230 chmod +x "$wrapscript.$interp" | 224 chmod +x "$wrapscript.$interp" |
231 done | 225 done |
232 | 226 |
233 ####################### | 227 ####################### |
234 ## symlinks to wrappers | 228 ## symlinks to wrappers |
235 | 229 |
236 cd ${bindir}; | 230 cd ${bindir}; |
237 for a in abc2ly musicxml2ly convert-ly midi2ly etf2ly lilypond-book mup2ly;
do | 231 for a in abc2ly musicxml2ly convert-ly midi2ly etf2ly lilypond-book mup2ly;
do |
238 rm -f $a; | 232 rm -f $a; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 | 313 |
320 Full documentation can be found at | 314 Full documentation can be found at |
321 | 315 |
322 $documentation | 316 $documentation |
323 | 317 |
324 EOF | 318 EOF |
325 | 319 |
326 ## need this because binary data starts after this. | 320 ## need this because binary data starts after this. |
327 exit 0 | 321 exit 0 |
328 ## END of script | 322 ## END of script |
OLD | NEW |