[gthumb] automatically set the api version as the first two numbers of the version
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] automatically set the api version as the first two numbers of the version
- Date: Sat, 21 Apr 2012 10:15:25 +0000 (UTC)
commit 2452534685dad9a3ac6262902b44834ba8482043
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Apr 21 12:10:21 2012 +0200
automatically set the api version as the first two numbers of the version
configure.ac | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3da845d..9fff786 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,13 +1,24 @@
+m4_define([gthumb_major_version], [2])
+m4_define([gthumb_minor_version], [90])
+m4_define([gthumb_micro_version], [3])
+m4_define([gthumb_version],
+ [gthumb_major_version.gthumb_minor_version.gthumb_micro_version])
+m4_define([gthumb_api_version],
+ [gthumb_major_version.gthumb_minor_version])
+
AC_PREREQ(2.63)
-AC_INIT([gthumb],[2.90.3],[http://bugzilla.gnome.org/enter_bug.cgi?product=gthumb])
+AC_INIT([gthumb], [gthumb_version],
+ [http://bugzilla.gnome.org/enter_bug.cgi?product=gthumb],
+ [gthumb])
AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz tar-ustar])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([configure.ac])
-GTHUMB_API_VERSION=2.90
+GTHUMB_API_VERSION=gthumb_api_version
AC_SUBST([GTHUMB_API_VERSION])
+AC_DEFINE_UNQUOTED([GTHUMB_API_VERSION],["$GTHUMB_API_VERSION"],[gThumb API version])
if test -z "$enable_maintainer_mode"; then
enable_maintainer_mode=yes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]