#!/bin/bash name="No Gnus" if [ `whoami` != "larsi" ]; then echo "This script is for larsi only" exit fi # First do a release commit on the current version. version=`grep "defconst gnus-version-number" lisp/gnus.el | \ sed 's/[^.0-9]//g'` initial=`echo "$name" | sed 's/^\([A-Z]\).*/\1/g' | tr A-Z a-z` prefix=`echo $version | sed 's/^\(.*[.]\)\([0-9][0-9]*\)/\1/'` next_version=`echo $version | sed 's/^\(.*[.]\)\([0-9][0-9]*\)/\2/'` next_version=`expr $next_version + 1` next_version="$prefix$next_version" date=`TZ=Z date "+%Y-%m-%d"` echo -e "$date Lars Magne Ingebrigtsen \n\n\t* gnus.el: $name v$version is released.\n"\ > /tmp/changelog cat lisp/ChangeLog >> /tmp/changelog mv /tmp/changelog lisp/ChangeLog git commit -m "$name v$version is released" # Then update the sources to the next version. sed "s/$name v0\.[0-9]*/$name v$version/" texi/gnus.texi > g.texi.tmp mv g.texi.tmp texi/gnus.texi sed "s/$name v0\.[0-9]*/$name v$version/" texi/message.texi > m.texi.tmp mv m.texi.tmp texi/message.texi tversion=`echo $next_version | sed 's/[.]/-/g'` git tag -a "$initial$tversion" -m "$name v$next_version is begun"