From f34daaa335b691a8fe58a9f3e2b84fbc5050f40f Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Tue, 7 Nov 2006 16:52:23 +0000 Subject: [PATCH] Improved source organisation, version string & change log --- mbuni/ChangeLog | 3 +++ mbuni/configure.ac | 15 ++++++++++++++- mbuni/mmlib/mms_util.h | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/mbuni/ChangeLog b/mbuni/ChangeLog index 39c7f41..426579d 100644 --- a/mbuni/ChangeLog +++ b/mbuni/ChangeLog @@ -1,3 +1,6 @@ +2006-11-07 Paul A. Bagyenda + * Improved source organisation (Changelog populated, better version string) + 2006-11-03 Paul A. Bagyenda * Adding version file diff --git a/mbuni/configure.ac b/mbuni/configure.ac index 5254c21..1caeb6c 100644 --- a/mbuni/configure.ac +++ b/mbuni/configure.ac @@ -11,6 +11,16 @@ AC_PREREQ(2.59) AC_INIT([mbuni],[cvs],[devel@mbuni.org]) +dnl Set version + +AC_MSG_CHECKING([Retrieving Mbuni version]) +M_VERSION=`head -n 1 VERSION` +if test "x$M_VERSION" = "xcvs"; then + CVS_DATE=`head -1 ChangeLog | cut -f 1 -d ' ' | sed 's/-//g'` + M_VERSION="$M_VERSION-$CVS_DATE" +fi + +AC_MSG_RESULT([$M_VERSION]) AC_CONFIG_SRCDIR([mmlib/mms_util.c]) AC_CONFIG_AUX_DIR(autotools) @@ -251,6 +261,9 @@ fi AC_CHECK_LIB([gwlib], [cfg_create], [], AC_MSG_ERROR([Kannel gwlib is required!])) AC_CHECK_LIB([wap], [wsp_headers_pack], [], AC_MSG_ERROR([Kannel WAP lib is required!])) +dnl Add mbuni version to Cflags +# CFLAGS="$CFLAGS -DMBUNI_VERSION=\"$M_VERSION\"" +AC_DEFINE_UNQUOTED(MBUNI_VERSION, "$M_VERSION", "Mbuni Version") dnl May be we need to check for media conversion tools (imagemagick, etc)? @@ -261,7 +274,7 @@ AC_OUTPUT cat<