tts/vers.c.sh
Felicity Tarnell 66c12e8e73 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.
2014-03-05 15:28:24 +00:00

6 lines
158 B
Bash

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