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
38 . .
/stepmake
/bin
/package-zet.sh
39 #urg. LILYPOND_PREFIX, _SOURCEDIR, PATH, *INPUTS all broken
40 #sourcetree=`basename \`pwd\``
41 #(cd .. ; rm lilypond-devel ; showln -s $sourcetree lilypond-devel)
44 echo You should add the following to your profile
script
46 testvar LILYPONDPREFIX lily
$LILYPOND_SOURCEDIR
47 testvar MFINPUTS lily .
:$MFINPUTS:$LILYPOND_SOURCEDIR/mf
48 testvar TEXINPUTS lily .
:$TEXINPUTS:$LILYPOND_SOURCEDIR/ps
:$LILYPOND_SOURCEDIR/tex
49 testvar GS_FONTPATH lily
$HOME/usr
/src
/lilypond
/mf
/out
50 testvar MAILADDRESS
"@" $USER@
`hostname`
55 showln
-sf $LILYPOND_SOURCEDIR/lily
/out
/lilypond
$prefix/bin
/lilypond
56 showln
-sf $LILYPOND_SOURCEDIR/midi2ly
/out
/midi2ly
$prefix/bin
/midi2ly
57 showln
-sf $LILYPOND_SOURCEDIR/scripts
/out
/ly2dvi
$prefix/bin
/ly2dvi
58 showln
-sf $LILYPOND_SOURCEDIR/scripts
/out
/mudela-book
$prefix/bin
/mudela-book
59 showln
-sf $LILYPOND_SOURCEDIR/buildscripts
/out
/genheader
$prefix/bin
/genheader
60 showln
-sf $LILYPOND_SOURCEDIR/scripts
/out
/as2text
$prefix/bin
/as2text
63 testmkdir
$prefix/share
64 rm -rf $prefix/share
/lilypond
65 showln
-sf $sources/lilypond
$prefix/share
/lilypond
69 LOCALES
="de fr it ja nl ru"
71 dir
=$BUILDDIR/share
/locale
/$i/LC_MESSAGES
72 if test ! -x $dir ; then
75 rm -f $dir/lilypond.mo
76 showln
-sf $BUILDDIR/po
/out
/$i.mo
$dir/lilypond.mo
78 rm -f afm
; showln
-sf $BUILDDIR/mf
/out afm
79 rm -f tfm
; showln
-sf $BUILDDIR/mf
/out tfm
82 for i
in $TFM_FONTS; do
83 dir
=`kpsewhich tfm ${i}10.tfm`
84 TFM_PATH
="$TFM_PATH `dirname $dir`"
87 # urg: GNU make's $(word) index starts at 1
89 for dir
in $TFM_PATH; do
90 rm -f $BUILDDIR/tfm.
$i;
91 showln
-s $dir $BUILDDIR/tfm.
$i
95 if [ -f ..
/.gdbinit.lilypond
];
97 showln
-f ..
/.gdbinit.lilypond .gdbinit
100 if [ -f ..
/.dstreamrc
]
102 showln
-f ..
/.dstreamrc .
106 echo Starting configuration
108 (set -x; .
/configure
--prefix=$prefix --enable-debugging --enable-printing --enable-checking --disable-optimise)
110 echo "Making tags in background..."
111 make TAGS
> /dev
/null
2>&1 &