[cheese] update maintainer.sh tool to work with new autofoo syntax



commit 5c5baf856cfa6ead86deffb79fe5e38f39c13ed5
Author: daniel g. siegel <dgsiegel gnome org>
Date:   Wed Mar 9 21:49:31 2011 +0100

    update maintainer.sh tool to work with new autofoo syntax

 tools/maintainer.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tools/maintainer.sh b/tools/maintainer.sh
index b325dad..06b00da 100755
--- a/tools/maintainer.sh
+++ b/tools/maintainer.sh
@@ -22,7 +22,8 @@ fi
 PACKAGE_MODULE=$(echo $PACKAGE_NAME | tr "[:upper:]" "[:lower:]")
 PACKAGE_SCREENSHOTS="${PACKAGE_WEBSITE}tour"
 PACKAGE_VERSION=$(cat $PACKAGE_NEWS_FILE | grep -m1 version | awk '{ print $2 }')
-PACKAGE_VERSION=$(cat configure.ac | grep AC_INIT | awk '{print $2}' | sed "s/)//")
+#PACKAGE_VERSION=$(cat configure.ac | grep AC_INIT | awk '{print $2}' | sed "s/)//")
+PACKAGE_VERSION=$(cat configure.ac | grep -A 1 AC_INIT | grep -o "[0-9]\.[0-9]\{1,2\}\.[0-9]\{1,2\}")
 SUBJECT="ANNOUNCE: $PACKAGE_NAME $PACKAGE_VERSION released"
 
 ###############################################



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]