2 # set-lily.sh --- configure LilyPond sourcetree;
4 # configure Lily in $HOME/usr/src/lilypond-x.x.x,
5 # and without installing
27 var=`eval echo '\$'$1`
28 if [ "`echo "$var" | grep $2`" = "" ]; then
29 # if ! expr "$var" : ".*\($2\).*" ; then
37 . ./stepmake/bin/package-zet.sh
39 echo You should add the following to your profile script
41 testvar LILYPONDPREFIX lily $LILYPOND_SOURCEDIR
42 testvar MFINPUTS lily .:$MFINPUTS:$LILYPOND_SOURCEDIR/mf
43 testvar TEXINPUTS lily .:$TEXINPUTS:$LILYPOND_SOURCEDIR/ps:$LILYPOND_SOURCEDIR/tex
44 testvar GS_LIB lily $HOME/usr/src/lilypond/ps
45 testvar GS_FONTPATH lily $HOME/usr/src/lilypond/mf/out
46 testvar GUILE_LOAD_PATH lily $HOME/usr/src/lilypond/init
47 testvar MAILADDRESS "@" $USER@`hostname`
52 showln -sf $LILYPOND_SOURCEDIR/lily/out/lilypond $prefix/bin/lilypond
53 showln -sf $LILYPOND_SOURCEDIR/midi2ly/out/midi2ly $prefix/bin/midi2ly
54 showln -sf $LILYPOND_SOURCEDIR/scripts/out/ly2dvi $prefix/bin/ly2dvi
55 showln -sf $LILYPOND_SOURCEDIR/scripts/out/mudela-book $prefix/bin/mudela-book
56 showln -sf $LILYPOND_SOURCEDIR/buildscripts/out/genheader $prefix/bin/genheader
57 chmod 755 $LILYPOND_SOURCEDIR/buildscripts/ps-to-gifs.sh
58 showln -sf $LILYPOND_SOURCEDIR/buildscripts/ps-to-gifs.sh $prefix/bin/ps-to-gifs
60 testmkdir $prefix/share
61 rm -rf $prefix/share/lilypond
62 showln -sf $sources/lilypond $prefix/share/lilypond
64 if [ -f ../.gdbinit ];
66 showln -f ../.gdbinit .
69 if [ -f ../.dstreamrc ]
71 showln -f ../.dstreamrc .
75 echo Starting configuration
77 (set -x; TEX_TFMDIR=$TEX_TFMDIR ./configure --prefix=$prefix --enable-debugging --enable-printing --enable-checking --disable-optimise --enable-guile)