3 # project LilyPond -- the musical typesetter
4 # title (bash/sh/ksh) script to setup library and auto generated files
7 # Copyright (c) 1997 by
8 # Han-Wen Nienhuys <hanwen@stack.nl>
9 # Jan Nieuwenhuizen <jan@digicash.com>
20 # without "function" ok for ksh, bash
22 eval `sed -n 's/^\([A-Z_]*\)[ ]*=[ ]*\([^ \#]*\).*$/\1=\2/p' $1`
23 # NEWVER=$TOPLEVEL_MAJOR_VERSION.$TOPLEVEL_MINOR_VERSION.$TOPLEVEL_PATCH_LEVEL$TOPLEVEL_MY_PATCH_LEVEL
24 NEWVER
=$MAJOR_VERSION.
$MINOR_VERSION.
$PATCH_LEVEL$MY_PATCH_LEVEL
26 echo "Current version ("`pwd`") is:"
39 echo using PREFIX
=$PREFIX
40 echo I need Flower version
$NEEDFLOWERVER
42 flowertar
=flower-
$NEEDFLOWERVER
46 do_outdir Documentation
58 ln -fs $flowertar flower
59 elif [ -d ..
/$flowertar ]
61 ln -fs ..
/$flowertar flower
63 echo "can't find $flowertar"
68 echo Configuring Flower Library
69 setversion .
/flower
/.version
70 if [ $NEWVER != $NEEDFLOWERVER ]; then
71 echo "You seem to be having an incorrect version of the Flower library"
73 echo "You got the correct Flower version."
77 echo '#define LIBDIR "'$PREFIX'/"'> lib
/out
/config.hh
78 touch flower
/lib
/out
/flower-config.hh
80 $MAKE -C make -f Initial.
make
82 echo "The sources are ready for compiling. "
83 echo "To make sure that you don't have any stale dependencies: do"