lilypond-0.0.34
[lilypond.git] / configure
blob45a8f9b13ab943f4ea9b49b43d95e52158f507f9
1 #!/bin/sh
3 # script to setup library and auto generated files.
5 function setversion() {
6 eval `sed -n 's/^\([A-Z]*\)=\([p0-9].*\)$/\1=\2/p' Variables.make`
7 NEWVER=$MAJVER.$MINVER.$PATCHLEVEL
8 echo
9 echo "Current version ("`pwd`") is $NEWVER"
10 echo
13 MAKE=${MAKE:-make}
14 PREFIX=${PREFIX:-.}
15 NEEDFLOWERVER=1.1.2
17 echo using PREFIX=$PREFIX
18 echo I need Flower version $NEEDFLOWERVER
20 flowertar=flower-$NEEDFLOWERVER
21 here=`pwd`
22 cd ..
24 if [ -x flower ]
25 then
26 echo Found flowerdir
27 else
29 if [ ! -d $flowertar ]
30 then
31 echo "can't find $flowertar"
32 exit 1;
34 rm flower
35 ln -s $flowertar flower
38 echo Compiling Library
40 cd flower;
41 setversion
42 if [ $NEWVER != $NEEDFLOWERVER ]; then
43 echo "You seem to be having an incorrect version of the Flower library"
44 else
45 echo "You got the correct Flower version."
47 $MAKE
50 cd $here
52 echo '#define LIBDIR "'$PREFIX'/"'> hdr/config.hh
53 touch Site.make
54 $MAKE -f Initial.make