gnus-msg.el: Fix detection of nnir group.
[gnus] / makepub
1 #!/bin/bash
2 name="Ma Gnus"
3
4 if [ `whoami` != "larsi" ]; then
5     echo "This script is for larsi only"
6     exit
7 fi
8
9 # First do a release commit on the current version.
10
11 version=`grep "defconst gnus-version-number" lisp/gnus.el | \
12     sed 's/[^.0-9]//g'`
13
14 initial=`echo "$name" | sed 's/^\([A-Z]\).*/\1/g' | tr A-Z a-z`
15
16 prefix=`echo $version | sed 's/^\(.*[.]\)\([0-9][0-9]*\)/\1/'`
17 next_version=`echo $version | sed 's/^\(.*[.]\)\([0-9][0-9]*\)/\2/'`
18 next_version=`expr $next_version + 1`
19 next_version="$prefix$next_version"
20
21 date=`TZ=Z date "+%Y-%m-%d"`
22 echo -e "$date  Lars Magne Ingebrigtsen  <lars@ingebrigtsen.no>\n\n\t* gnus.el: $name v$next_version is released.\n"\
23   > /tmp/changelog
24 cat lisp/ChangeLog >> /tmp/changelog
25 mv /tmp/changelog lisp/ChangeLog
26
27 # Then update the sources to the next version.
28
29 sed "s/$name v[.0-9]*/$name v$next_version/" texi/gnus.texi > g.texi.tmp
30<