4 head -n 16 configure.ac | grep VERSION= > /tmp/commitTool.tmp
5 source /tmp/commitTool.tmp
6 EXTRA_VERSION=`echo $EXTRA_VERSION | awk -F'.' '{for (i=1;i<NF;i++){printf $i"."};printf $NF+1}'`
7 nextsversion="${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}cvs${EXTRA_VERSION}"
8 nextextra="$EXTRA_VERSION"
10 rm /tmp/commitTool.tmp
14 filelist=`cvs status $@ configure.ac 2>/dev/null |grep ^File`
16 for file in $filelist; do
17 merge=`echo $file | grep Merge`
18 modif=`echo $file | grep Locally`
19 patch=`echo $file | grep Patch`
20 if [ "$patch" != "" ]; then
22 echo You have to update first
25 if [ "$merge" != "" ]; then
27 echo You have to update first
30 if [ "$modif" != "" ]; then
36 files=`cvs diff -uN $@ 2>/dev/null |grep ^Index`
38 #change if your login isn't your name
39 if [ "$name" == "claws" ]; then
42 if [ "$name" == "leroyc" ]; then
45 if [ "$name" == "torte" ]; then
48 if [ "$name" == "dinh" ]; then
51 if [ "$name" == "f" -o "$name" == "darkok" ]; then
54 if [ "$name" == "msp" ]; then
57 if [ "$name" == "devel" ]; then
61 log="`date --utc +%Y-%m-%d` [$name]\t$nextsversion\n\n"
62 for line in $files; do
63 file=`echo $line | cut -d' ' -f2`
65 filename=`basename $file`
66 cvsfile="$dir/CVS/Entries"
67 version=`grep "\/$filename\/" $cvsfile | cut -d'/' -f3`
68 nextversion=`echo $version | awk -F'.' '{for (i=1;i<NF;i++){printf $i"."};printf $NF+1}'`
71 if [ "$version" != "0" ]; then
72 patchset="$patchset cvs diff -u -r $version -r $nextversion $file; "
74 patchset="$patchset diff -u /dev/null $file; "
77 patchset="$patchset ) > $nextsversion.patchset"
79 if [ "$EDITOR" == "" ]; then
84 echo -e "#please complete the changelog entry below" > /tmp/logentry
85 echo -e -n $log >> /tmp/logentry
90 grep -v "^#" /tmp/logentry > /tmp/log.tmp.$$ \
91 && mv /tmp/log.tmp.$$ /tmp/logentry
98 echo -n "Is it ok (write to $chlog and update configure.ac) [y/N]?"
100 if [ "$ans" == "y" ]; then
102 cat /tmp/logentry > $chlog
103 cat $chlog.old >> $chlog
106 cat configure.ac | sed "s/^EXTRA_VERSION=.*/EXTRA_VERSION=$nextextra/" > configure.ac.new \
107 && mv configure.ac.new configure.ac ;
109 echo "$patchset" >> PATCHSETS
111 if [ "$args" != "" ]; then
112 echo commiting $@ PATCHSETS $chlog configure.ac
113 cvs commit -m "`cat /tmp/logentry`" $@ PATCHSETS $chlog configure.ac
115 echo commiting recursively
116 cvs commit -m "`cat /tmp/logentry` "
119 wget -O /dev/null -o /dev/null http://www.colino.net/sylpheed-claws-gtk2/update.php3