]> git.donarmstrong.com Git - lilypond.git/blob - bin/conflily.sh
partial: 1.0.1.jcn
[lilypond.git] / bin / conflily.sh
1 #!/bin/sh
2 # conflily --- configure LilyPond sourcetree
3 #
4 # You should set LILYPOND_SOURCEDIR to the latest uppacked source dir,
5 # it will default to:
6 #
7 export LILYPOND_SOURCEDIR=$HOME/lelie/current
8 #
9 # and create links to here, if necessary
10 #
11 if [ ! -e $HOME/lelie ]; then
12         (cd ..; ln -s `pwd` $HOME/lelie)
13 fi
14 #
15 #
16 current=`basename \`pwd\``
17 # (cd ..; rm -f current)
18 (cd ..; rm -f current 2>&1 > /dev/null)
19 (cd ..; ln -s $current current)
20 #
21 # The LilyPond root dir looks like this:
22 #
23 #    current -> ./lilypond-x.x.x    symlink to current source
24 #    lilypond-x.x.x/                the unpacked LilyPond source
25 #    patches/                       gzipped patches
26 #    releases/                      tar gzipped releases
27 #    test/                          latest output of 'release'
28 #
29 #
30 if [ "x$LILYINCLUDE" = "x" ]; then
31         # we can try...
32         echo you should add the following to your login script
33         if [ "x$MAILADDRESS" = "x" ]; then
34                 export MAILADDRESS=$USER@`hostname`
35                 echo "        export MAILADDRESS=\$USER@`hostname`"
36         fi
37         export LILYINCLUDE=$LILYPOND_SOURCEDIR/init:$LILYPOND_SOURCEDIR/mf/out
38         export PATH=$PATH$LILYPOND_SOURCEDIR/bin:
39         export MFINPUTS=$MFINPUTS:$LILYPOND_SOURCEDIR/mf
40         export TEXINPUTS=$TEXINPUTS:$LILYPOND_SOURCEDIR/mf/out
41         cat <<EOF
42         export LILYINCLUDE=\$LILYPOND_SOURCEDIR/init:\$LILYPOND_SOURCEDIR/mf/out
43         export PATH=\$PATH:$LILYPOND_SOURCEDIR/bin
44         export MFINPUTS=\$MFINPUTS:\$LILYPOND_SOURCEDIR/mf
45         export TEXINPUTS=\$TEXINPUTS:\$LILYPOND_SOURCEDIR/mf/out
46 EOF
47 fi
48
49 ln -sf $LILYPOND_SOURCEDIR/lily/out/lilypond bin/out/lilypond
50 ln -sf $LILPPOND_SOURCEDIR/out/mi2mu bin/out/mi2mu
51
52 configure --prefix=/usr --enable-debugging --enable-printing --enable-checking --disable-optimise