diff options
-rwxr-xr-x | acprep | 3 | ||||
-rw-r--r-- | configure.ac (renamed from configure.tmpl) | 6 | ||||
-rw-r--r-- | version.m4 | 1 | ||||
-rw-r--r-- | version.m4.in | 1 |
4 files changed, 6 insertions, 5 deletions
@@ -21,8 +21,7 @@ fi COMMIT=$(git describe --all --long | sed 's/heads\///') -cat configure.tmpl | \ - sed "s/%VERSION%/$COMMIT/" > configure.in +cat version.m4.in | sed "s/%VERSION%/$COMMIT/" > version.m4 autoreconf --force --install diff --git a/configure.tmpl b/configure.ac index d88cfe03..97654273 100644 --- a/configure.tmpl +++ b/configure.ac @@ -3,12 +3,12 @@ AC_PREREQ(2.61) -AC_INIT([ledger],[%VERSION%],[johnw@newartisans.com]) -AC_CONFIG_SRCDIR(ledger) -AM_INIT_AUTOMAKE([dist-bzip2]) +m4_include([version.m4]) +AC_INIT([ledger],VERSION_NUMBER,[johnw@newartisans.com]) AC_CONFIG_SRCDIR([main.cc]) AC_CONFIG_HEADER([acconf.h]) +AM_INIT_AUTOMAKE([dist-bzip2]) # Checks for programs. AC_PROG_CXX diff --git a/version.m4 b/version.m4 new file mode 100644 index 00000000..cd74737a --- /dev/null +++ b/version.m4 @@ -0,0 +1 @@ +m4_define([VERSION_NUMBER], [3.0]) diff --git a/version.m4.in b/version.m4.in new file mode 100644 index 00000000..cd74737a --- /dev/null +++ b/version.m4.in @@ -0,0 +1 @@ +m4_define([VERSION_NUMBER], [3.0]) |