Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2016-11-15 12:11:47 -0500
committerMike Gerwitz <gerwitzm@lovullo.com>2016-11-15 12:26:39 -0500
commit63701e453ec03084da0a82e3b0e23bbcbce086fa (patch)
treecdf6f433a367b1007e710acf6d42e7e3d9a5d3db
parent9669b80536737dd7068041e3c52b94ce1f8428a7 (diff)
downloadtame-63701e453ec03084da0a82e3b0e23bbcbce086fa.tar.gz
tame-63701e453ec03084da0a82e3b0e23bbcbce086fa.tar.bz2
tame-63701e453ec03084da0a82e3b0e23bbcbce086fa.zip
Generate version string using tools/vergen
This is important to indicate when there is ongoing development; otherwise the version number is incorrect and may deceive. It's not appropriate to bump the version constantly during development before release, either. * configure.ac (ver): Variable added, populated by tools/vergen. (AC_INIT): Use `ver'.
-rw-r--r--configure.ac6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9dac7e5..c5138bb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,7 +16,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
##
-AC_INIT([tame], [1.0.0], [dev@lovullo.com])
+# version string is dynamically generated
+m4_define([ver], m4_esyscmd(tools/vergen))
+m4_if(ver, [], [m4_exit(1)])
+
+AC_INIT([tame], [ver], [dev@lovullo.com])
AC_CONFIG_AUX_DIR([tools])
AM_INIT_AUTOMAKE([foreign])