From 518b48e8d4bea7d81e52a2be139c018e15d5ce0e Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Fri, 6 Aug 2004 15:56:46 +0000 Subject: [PATCH] autoupdate configure.ac --- commitHelper | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/commitHelper b/commitHelper index 5bc7b387d..2bc0cb39d 100644 --- a/commitHelper +++ b/commitHelper @@ -4,9 +4,13 @@ source /tmp/commitTool.tmp if [ -z "$EXTRA_GTK2_VERSION" ]; then EXTRA_VERSION=`echo $EXTRA_VERSION | awk -F'.' '{for (i=1;i $chlog cat $chlog.old >> $chlog rm $chlog.old + + if [ "$nextextratype" == "head" ]; then + cat configure.ac | sed "s/^EXTRA_VERSION=.*/EXTRA_VERSION=$nextextra/" > configure.ac.new \ + && mv configure.ac.new configure.ac ; + else + cat configure.ac | sed "s/^EXTRA_GTK2_VERSION=.*/EXTRA_GTK2_VERSION=$nextextra/" > configure.ac.new \ + && mv configure.ac.new configure.ac ; + fi; + echo "$patchset" >> PATCHSETS - echo "editing $chlog configure.ac..." + echo "editing $chlog ..." if [ "$EDITOR" == "" ]; then EDITOR=vi fi; - $EDITOR $chlog configure.ac + $EDITOR $chlog if [ "$@" != "" ]; then echo running cvs commit $@ PATCHSETS $chlog configure.ac cvs commit $@ PATCHSETS $chlog configure.ac -- 2.25.1