summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-04 15:50:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-04 15:50:58 -0400
commit007f4ecb607c9f811d4093a632a4ffb23f481fec (patch)
tree22b102fee47183278756a9d4b278b5e160fd67b7
parentbcffbc96ba88bd19f5f8ac00015ff38131fd6466 (diff)
downloadfork-ledger-007f4ecb607c9f811d4093a632a4ffb23f481fec.tar.gz
fork-ledger-007f4ecb607c9f811d4093a632a4ffb23f481fec.tar.bz2
fork-ledger-007f4ecb607c9f811d4093a632a4ffb23f481fec.zip
Changed the way that version info is included into a Ledger build.
-rwxr-xr-xacprep3
-rw-r--r--configure.ac (renamed from configure.tmpl)6
-rw-r--r--version.m41
-rw-r--r--version.m4.in1
4 files changed, 6 insertions, 5 deletions
diff --git a/acprep b/acprep
index ff20b1fd..3415470c 100755
--- a/acprep
+++ b/acprep
@@ -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])