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:
parent
5db1e9cdbb
commit
66c12e8e73
5 changed files with 29 additions and 13 deletions
6
vers.c.sh
Normal file
6
vers.c.sh
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue