Changed the way that version info is included into a Ledger build.
This commit is contained in:
parent
bcffbc96ba
commit
007f4ecb60
4 changed files with 6 additions and 5 deletions
3
acprep
3
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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
1
version.m4
Normal file
1
version.m4
Normal file
|
|
@ -0,0 +1 @@
|
|||
m4_define([VERSION_NUMBER], [3.0])
|
||||
1
version.m4.in
Normal file
1
version.m4.in
Normal file
|
|
@ -0,0 +1 @@
|
|||
m4_define([VERSION_NUMBER], [3.0])
|
||||
Loading…
Add table
Reference in a new issue