From: fred Date: Sun, 24 Mar 2002 20:00:17 +0000 (+0000) Subject: lilypond-0.1.22 X-Git-Tag: release/1.5.59~3735 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f04169b167b353bee3d76f784b6d9f85f448b8fc;p=lilypond.git lilypond-0.1.22 --- diff --git a/bin/release.sh b/bin/release.sh new file mode 100644 index 0000000000..e6e3b679ef --- /dev/null +++ b/bin/release.sh @@ -0,0 +1,73 @@ +#!/bin/sh + +# script to automate releases + +grep -q '^TOP' VERSION + res=$? +if test ! -f VERSION || test $res != 0; then + echo not in topleveldir + exit 1 +fi + +function setversion() { +eval `sed -n 's/^\([A-Z_]*\) *= *\(.*\)$/\1=\2/p' VERSION` + +MJ=$TOPLEVEL_MAJOR_VERSION +MI=$TOPLEVEL_MINOR_VERSION +PA=$TOPLEVEL_PATCH_LEVEL +MP=$TOPLEVEL_MY_PATCH_LEVEL +NEWVER=$MJ.$MI.$PA$MP +if [ x$MP = x -o x$MP = xpre ] +then + LASTVER=$MJ.$MI.`expr $PA - 1` + + if [ -f $releasedir//lilypond-$LASTVER""pre.tar.gz ] ; then + LASTVER="$LASTVER""pre" + fi +else + LASTVER=$MJ.$MI.$PA +fi + +echo +echo "Current version ("`pwd`") is $NEWVER, Last version: $LASTVER" +echo +} + +heredir=`pwd` +releasedir=`pwd`/../releases +patchdir=`pwd`/../patches +MAKE=${MAKE:-"make"} +TAR=${TAR:-"tar"} + + +$MAKE dist; +setversion +LILYVER=$NEWVER + +tarball=lilypond-$LILYVER.tar.gz +patch=patch-$LILYVER.gz + +mv $tarball $releasedir/ + +cd ../test +sh $heredir/bin/make-patch.sh $LASTVER $NEWVER lilypond +gzip -f9 patch-$NEWVER +mv $patch $patchdir// + +RPMS=`find ~/rpms/ -name lilypond-$NEWVER'*'rpm` +rm *.rpm {lilypond,patch}-*.gz + +if [ ! -z "$RPMS" ]; then + ln $RPMS . +fi + +ln $releasedir//$tarball . +ln $patchdir//$patch . + + +if [ ! -z "$RPMS" ]; then + RPMS="lilypond-$LILYVER-1.i386.rpm lilypond-$LILYVER-1.src.rpm" +fi +$TAR cf updeet $tarball $patch $RPMS +$TAR tfv updeet + diff --git a/tex/lilyponddefs.tex b/tex/lilyponddefs.tex index 2854a35417..add2284b62 100644 --- a/tex/lilyponddefs.tex +++ b/tex/lilyponddefs.tex @@ -153,6 +153,28 @@ \def\startrepeat{\repeatstartbar} \def\repeatbarstartrepeat{\repeatstopstart} +\def\vruler#1{{% + \def\wid{\dimen0}% + \def\inc{\dimen1}% + \wid=#1pt + \inc=\wid + \divide\inc by #1 + \divide\wid by 2 + \here=-\wid + \loop\ifdim\here<\wid\advance\here by\inc + \hbox to0pt{\vbox to0pt{\vss\hrule width2pt height 0.05pt\kern\here}\hss}% + \repeat% +}} +\def\hruler#1#2{\hbox{% + \def\wid{\dimen0}% + \def\here{\dimen3}% + \wid=#1pt + \divide\wid by 2 + \here=-\wid + \loop\ifdim\here<\wid\advance\here by #2 + \hbox to0pt{\kern\here\vrule width0.05pt height 1pt depth 1pt\hss}% + \repeat% +}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -262,4 +284,6 @@ }\else{foo\hfil\the\pageno\hfil}\fi}} \fi - + +% debugging stuff: +% \vbox to 0pt{\vskip .5cm \hruler{48}{3pt}\vss}