Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-08-15 15:18:21 -0400
committerMike Gerwitz <gerwitzm@lovullo.com>2017-08-15 15:18:21 -0400
commit5867f263e2f8d60aab3592300204d5619d61c761 (patch)
tree73c501aa6fc54fc134abea55a5037c5435152426 /configure.ac
parentf27d504ea3fed1b37fe7ab77e864b33b9e95b5c0 (diff)
downloadliza-5867f263e2f8d60aab3592300204d5619d61c761.tar.gz
liza-5867f263e2f8d60aab3592300204d5619d61c761.tar.bz2
liza-5867f263e2f8d60aab3592300204d5619d61c761.zip
Generate version number from git statev1.4.0
Copies script from GNU ease.js. * .gitignore: Do not ignore `build-aux/vergen'. * build-aux/vergen: Add file from GNU ease.js. * configure.ac: Use `vergen' to generate version string.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index fb8d969..cc58591 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,7 +18,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
##
-AC_INIT([liza], [1.3.0], [dev@lovullo.com])
+m4_define([ver], m4_esyscmd(build-aux/vergen))
+m4_if(ver, [], [m4_exit(1)])
+
+AC_INIT([liza], [ver], [dev@lovullo.com])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([foreign])