[sword-svn] r2969 - trunk/scripts

scribe at crosswire.org scribe at crosswire.org
Mon Aug 19 09:47:25 MST 2013


Author: scribe
Date: 2013-08-19 09:47:25 -0700 (Mon, 19 Aug 2013)
New Revision: 2969

Modified:
   trunk/scripts/mkswordtar
Log:
updated mkswordtar script to grab the version number from configure.ac instead of config.h


Modified: trunk/scripts/mkswordtar
===================================================================
--- trunk/scripts/mkswordtar	2013-08-18 19:05:56 UTC (rev 2968)
+++ trunk/scripts/mkswordtar	2013-08-19 16:47:25 UTC (rev 2969)
@@ -6,7 +6,7 @@
 (cd ..;./autogen.sh)
 
 REV=`cd ..;basename \`pwd ..\`|cut -d\- -f2`
-SWORDVER=`grep "define VERSI" ../include/config.h |cut -f2 -d"\""`
+SWORDVER=`grep AC_INIT ../configure.ac|cut -f2 -d' '|cut -f1 -d,`
 
 sed -i "s/^\(PROJECT_NUMBER\).*/\1 = \"$SWORDVER\"/" ../doc/Doxyfile
 sed -i "s/^SET(SWORD_VERSION.*/SET(SWORD_VERSION $SWORDVER)/" ../CMakeLists.txt
@@ -25,7 +25,7 @@
 	cd ..; tar -v -c -p -s -z --exclude sword-$REV/bin --exclude sword-$REV/autom4te.cache --exclude sword-$REV/bindings/swig/package/autom4te.cache -X sword-$REV/distignore -f sword-$REV.tar.gz sword-$REV/*
 
 else
-	echo $"Directory version is $REV, but config.h has $SWORDVER"
+	echo $"Directory version is $REV, but configure.ac has $SWORDVER"
 	exit 1
 
 fi




More information about the sword-cvs mailing list