Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mikegerwitz@gnu.org>2014-01-17 01:20:30 -0500
committerMike Gerwitz <mikegerwitz@gnu.org>2014-01-17 01:20:30 -0500
commita76fd811ed81f014d17c39b6eaa389cd4fd29e1b (patch)
tree075e18cda289cbe4d178dfdbdc343bffd360375c /configure.ac
parent50d17c3ad455088f4dfc31e9ef5aa1f23ff17e3c (diff)
downloadliza-a76fd811ed81f014d17c39b6eaa389cd4fd29e1b.tar.gz
liza-a76fd811ed81f014d17c39b6eaa389cd4fd29e1b.tar.bz2
liza-a76fd811ed81f014d17c39b6eaa389cd4fd29e1b.zip
Added version.js
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 6b40a60..9024783 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,6 +22,13 @@ AC_INIT([liza], [0.0.1-dev], [dev@lovullo.com])
AC_CONFIG_AUX_DIR([tools])
AM_INIT_AUTOMAKE([foreign])
+# provide more granular version numbers based on the above AC_INIT line
+m4_define([ver_split], m4_split(m4_translit(AC_PACKAGE_VERSION, [-], [.]), [\.]))
+AC_SUBST(MAJOR, m4_argn(1, ver_split))
+AC_SUBST(MINOR, m4_argn(2, ver_split))
+AC_SUBST(REV, m4_argn(3, ver_split))
+AC_SUBST(SUFFIX, m4_argn(4, ver_split))
+
# generate files from their *.in counterparts
-AC_CONFIG_FILES([Makefile doc/Makefile package.json])
+AC_CONFIG_FILES([Makefile doc/Makefile package.json src/version.js])
AC_OUTPUT