5 head -n 16 configure.ac | grep VERSION= > $tmpfile
7 EXTRA_VERSION=`echo $EXTRA_VERSION | awk -F'.' '{for (i=1;i<NF;i++){printf $i"."};printf $NF+1}'`
8 nextsversion="${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}cvs${EXTRA_VERSION}"
9 nextextra="$EXTRA_VERSION"
15 filelist=`cvs status $@ configure.ac 2>/dev/null |grep ^File`
17 for file in $filelist; do
18 merge=`echo $file | grep Merge`
19 modif=`echo $file | grep Locally`
20 patch=`echo $file | grep Patch`
21 if [ "$patch" != "" ]; then
23 echo You have to update first
26 if [ "$merge" != "" ]; then
28 echo You have to update first
31 if [ "$modif" != "" ]; then
37 files=`cvs diff -uN $@ 2>$tmpfile |grep ^Index`
38 if [ "$files" == "" ]; then
39 echo Nothing to commit\!
42 echo See possible reason below:
49 #change if your login isn't your name
50 if [ "$name" == "claws" ]; then
53 if [ "$name" == "leroyc" ]; then
56 if [ "$name" == "torte" ]; then
59 if [ "$name" == "dinh" ]; then
62 if [ "$name" == "f" -o "$name" == "darkok" ]; then
65 if [ "$name" == "msp" ]; then
68 if [ "$name" == "devel" ]; then
72 log="`date --utc +%Y-%m-%d` [$name]\t$nextsversion\n\n"
73 for line in $files; do
74 file=`echo $line | cut -d' ' -f2`
76 filename=`basename $file`
77 cvsfile="$dir/CVS/Entries"
78 version=`grep "\/$filename\/" $cvsfile | cut -d'/' -f3`
79 nextversion=`echo $version | awk -F'.' '{for (i=1;i<NF;i++){printf $i"."};printf $NF+1}'`
82 if [ "$version" != "0" ]; then
83 patchset="$patchset cvs diff -u -r $version -r $nextversion $file; "
85 patchset="$patchset diff -u /dev/null $file; "
88 patchset="$patchset ) > $nextsversion.patchset"
90 if [ "$EDITOR" == "" ]; then
95 echo -e "#please complete the changelog entry below" > /tmp/logentry
96 echo -e -n $log >> /tmp/logentry
100 echo "--8<----------"
101 grep -v "^#" /tmp/logentry > /tmp/log.tmp.$$ \
102 && mv /tmp/log.tmp.$$ /tmp/logentry
103 echo >> /tmp/logentry
108 echo "--8<----------"
109 echo -n "Is it ok (write to $chlog and update configure.ac) [y/N]?"
111 if [ "$ans" == "y" ]; then
113 cat /tmp/logentry > $chlog
114 cat $chlog.old >> $chlog
117 cat configure.ac | sed "s/^EXTRA_VERSION=.*/EXTRA_VERSION=$nextextra/" > configure.ac.new \
118 && mv configure.ac.new configure.ac ;
120 echo "$patchset" >> PATCHSETS
122 if [ "$args" != "" ]; then
123 echo commiting $@ PATCHSETS $chlog configure.ac
124 cvs commit -m "`cat /tmp/logentry`" $@ PATCHSETS $chlog configure.ac
126 echo commiting recursively
127 cvs commit -m "`cat /tmp/logentry` "
130 wget -O /dev/null -o /dev/null http://www.colino.net/sylpheed-claws-gtk2/update.php3