3 # script to automate releases
7 if test ! -f VERSION ||
test $res != 0; then
8 echo not
in topleveldir
12 function setversion
() {
13 eval `sed -n 's/^\([A-Z_]*\) *= *\(.*\)$/\1=\2/p' VERSION`
15 MJ
=$TOPLEVEL_MAJOR_VERSION
16 MI
=$TOPLEVEL_MINOR_VERSION
17 PA
=$TOPLEVEL_PATCH_LEVEL
18 MP
=$TOPLEVEL_MY_PATCH_LEVEL
20 if [ x
$MP = x
-o x
$MP = xpre
]
22 LASTVER
=$MJ.
$MI.
`expr $PA - 1`
24 if [ -f $releasedir//lilypond-
$LASTVER""pre.
tar.gz
] ; then
25 LASTVER
="$LASTVER""pre"
32 echo "Current version ("`pwd`") is $NEWVER, Last version: $LASTVER"
37 releasedir
=`pwd`/..
/releases
38 patchdir
=`pwd`/..
/patches
47 tarball
=lilypond-
$LILYVER.
tar.gz
48 patch=patch-
$LILYVER.gz
50 mv $tarball $releasedir/
53 $heredir/bin
/make-patch
$LASTVER $NEWVER lilypond
54 gzip -f9 patch-
$NEWVER
57 RPMS
=`find ~/rpms/ -name lilypond-$NEWVER'*'rpm`
58 rm *.rpm
{lilypond
,patch}-*.gz
60 if [ ! -z "$RPMS" ]; then
64 ln $releasedir//$tarball .
65 ln $patchdir//$patch .
68 if [ ! -z "$RPMS" ]; then
69 RPMS
="lilypond-$LILYVER-1.i386.rpm lilypond-$LILYVER-1.src.rpm"
71 $TAR cf updeet
$tarball $patch $RPMS