Calculate version string from configure.ac at compile time.

Also bump version from T.1.0-80 to T.81.0, as the leading 1.0 was useless.
This commit is contained in:
Felicity Tarnell 2014-03-05 15:28:24 +00:00
parent 5db1e9cdbb
commit 66c12e8e73
5 changed files with 29 additions and 13 deletions

6
vers.c.sh Normal file
View file

@ -0,0 +1,6 @@
#! /bin/sh
vers=`sed -n '/^AC_INIT/ { s/^AC_INIT(\[\(.*\)\], \[\(.*\)\], \[\(.*\)\])/\2/; p; }' $1`
cat >vers.c <<EOF
char const *tts_version = "$vers";
EOF