2 # rpm-dist.sh --- make an rpm distribution
4 latest
=lilypond-
`show-latest -p`
5 { cd $LILYPOND_SOURCEDIR; cd ..
;
6 export LILYPOND_ROOTDIR
=`pwd` }
9 rpmrc
=$LILYPOND_SOURCEDIR/make
/out
/rpmrc
10 spec
=$LILYPOND_SOURCEDIR/make
/out
/lilypond.spec
12 if [ ! -e $LILYPOND_ROOTDIR/releases
/$icon ]; then
13 make -C $LILYPOND_ROOTDIR/current
/Documentation gifs
14 ln $LILYPOND_ROOTDIR/current
/Documentation
/out
/$icon $LILYPOND_ROOTDIR/releases
19 if [ "x$user" != "xroot" ]; then
20 echo only root wants to build RPMs
24 if [ ! -e $LILYPOND_ROOTDIR/redhat
/BUILD
]; then
25 mkdir
-p $LILYPOND_ROOTDIR/redhat
/BUILD
26 mkdir
-p $LILYPOND_ROOTDIR/redhat
/RPMS
/i386
27 mkdir
-p $LILYPOND_ROOTDIR/redhat
/SRPMS
31 cd $LILYPOND_ROOTDIR/redhat ||
exit 1
34 rpm
-ba --rcfile $rpmrc $spec