lilypond-1.1.7
[lilypond.git] / buildscripts / set-lily.sh
blobc4ce39554622968bd62789d33fa66c82a029fd9e
1 #!/bin/sh
2 # zet-lily.sh --- configure LilyPond sourcetree
3 # nice in first character unique name
5 PACKAGE_NAME=LilyPond
6 export PACKAGE_NAME
7 prefix=$HOME/usr
8 sources=$prefix/src
11 . ./stepmake/bin/package-zet.sh
13 # The $sources dir looks like this:
15 # <SEE PATCHES.txt>
17 if [ "x$LILYINCLUDE" = "x" ]; then
18 # we can try...
19 echo you should add the following to your profile script
20 if [ "x$MAILADDRESS" = "x" ]; then
21 MAILADDRESS=$USER@`hostname`
22 export MAILADDRESS
23 echo " MAILADDRESS=\$USER@`hostname`"
24 echo " export MAILADDRESS"
26 LILYINCLUDE=$LILYPOND_SOURCEDIR/init:$LILYPOND_SOURCEDIR/input:$LILYPOND_SOURCEDIR/mf/out
27 MFINPUTS=$MFINPUTS:$LILYPOND_SOURCEDIR/mf
28 TEXINPUTS=$TEXINPUTS:$LILYPOND_SOURCEDIR/mf/out:$LILYPOND_SOURCEDIR/ps:$LILYPOND_SOURCEDIR/tex
29 export LILYINCLUDE MFINPUTS TEXINPUTS
30 GS_LIB=$HOME/usr/src/lilypond/ps
31 GS_FONTPATH=$HOME/usr/src/lilypond/mf/out
32 GUILE_LOAD_PATH=$HOME/usr/src/lilypond/init
33 export GS_LIB GS_FONTPATH GUILE_LOAD_PATH
34 cat <<EOF
35 LILYINCLUDE=$LILYPOND_SOURCEDIR/init:$LILYPOND_SOURCEDIR/mf/out
36 MFINPUTS=\$MFINPUTS:\$LILYPOND_SOURCEDIR/mf
37 TEXINPUTS=$TEXINPUTS:$LILYPOND_SOURCEDIR/mf/out:$LILYPOND_SOURCEDIR/ps:$LILYPOND_SOURCEDIR/tex
38 export LILYINCLUDE MFINPUTS TEXINPUTS
39 EOF
43 ln -sf $LILYPOND_SOURCEDIR/lily/out/lilypond $prefix/bin/lilypond
44 ln -sf $LILYPOND_SOURCEDIR/mi2mu/out/mi2mu $prefix/bin/mi2mu
45 ln -sf $LILYPOND_SOURCEDIR/scripts/out/ly2dvi $prefix/bin/ly2dvi
46 ln -sf $LILYPOND_SOURCEDIR/scripts/out/mudela-book $prefix/bin/mudela-book
47 chmod 755 $LILYPOND_SOURCEDIR/buildscripts/ps-to-gifs.sh
48 ln -sf $LILYPOND_SOURCEDIR/buildscripts/ps-to-gifs.sh $prefix/bin/ps-to-gifs
50 if [ -f ../.gdbinit ];
51 then
52 ln ../.gdbinit .
55 if [ -f ../.dstreamrc ]
56 then
57 ln ../.dstreamrc .
60 ./configure --prefix=$prefix --enable-debugging --enable-printing --enable-checking --disable-optimise --enable-guile