[balsa/gtk3] Use git tag to set version
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Use git tag to set version
- Date: Tue, 20 Dec 2011 22:34:27 +0000 (UTC)
commit ffc34a95cc21be90b4324e8297ec1d05720ed419
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Tue Dec 20 17:26:46 2011 -0500
Use git tag to set version
* configure.in: use git tag to set version.
ChangeLog | 4 ++++
configure.in | 29 ++++++++---------------------
2 files changed, 12 insertions(+), 21 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e683d12..bebbfc2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2011-12-20 Peter Bloomfield
+ * configure.in: use git tag to set version.
+
+2011-12-20 Peter Bloomfield
+
* Makefile.am: drop GNOME_Balsa.server.in from balsa_extra_dist.
2011-12-20 Peter Bloomfield
diff --git a/configure.in b/configure.in
index dc04c6c..1c52bf2 100644
--- a/configure.in
+++ b/configure.in
@@ -3,23 +3,18 @@ dnl follow section 5.3 of Autoconf, Automake book.
dnl
dnl 1. Boilerplate.
dnl
-AC_PREREQ(2.53)
-AC_INIT(src/balsa-app.h)
+AC_PREREQ(2.59)
dnl ###########################################################################
dnl Boilerplace and versioning
dnl ###########################################################################
-BALSA_MAJOR=2
-BALSA_REVISION=4
-BALSA_PATCHLEVEL=9
-BALSA_VERSION="$BALSA_MAJOR.$BALSA_REVISION.${BALSA_PATCHLEVEL}"
+# if autoconf is used not in a git source tree, use version=2.4.90
+AC_INIT([balsa],
+ m4_esyscmd_s([test -d .git && git describe --tags || echo 2.4.90]),
+ [])
-AC_SUBST(BALSA_MAJOR)
-AC_SUBST(BALSA_REVISION)
-AC_SUBST(BALSA_PATCHLEVEL)
-AC_SUBST(BALSA_VERSION)
-
-AM_INIT_AUTOMAKE(balsa, "$BALSA_MAJOR.$BALSA_REVISION.${BALSA_PATCHLEVEL}")
+AM_INIT_AUTOMAKE
+AC_LANG([C])
# Automake-1.11 option for less verbose output
# configure --disable-silent-rules to restore verbose
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
@@ -27,15 +22,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
-
-AC_DEFINE_UNQUOTED(BALSA_MAJOR, $BALSA_MAJOR,
- [Define to the Balsa major version])
-AC_DEFINE_UNQUOTED(BALSA_REVISION, $BALSA_REVISION,
- [Define to the Balsa revision])
-AC_DEFINE_UNQUOTED(BALSA_PATCHLEVEL, $BALSA_PATCHLEVEL,
- [Define to the Balsa patch level])
-AC_DEFINE_UNQUOTED(BALSA_VERSION, "$BALSA_VERSION",
- [Define to the Balsa version])
+AC_DEFINE_UNQUOTED(BALSA_VERSION, "AC_PACKAGE_VERSION",[Defines the Balsa version])
dnl #####################################################################
dnl 2. Options
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]