diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-22 18:47:42 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-23 19:03:35 +0800 |
commit | 4dce79a6d7b56185edfe19cf2803f1b71c8ddc74 (patch) | |
tree | 941a881ef54ef7d2ae938b471dbbc72cd064e18a /configure.ac | |
parent | f366c52d4a8d41312424799c36178065fe0a814f (diff) | |
download | gsoc2013-empathy-4dce79a6d7b56185edfe19cf2803f1b71c8ddc74.tar gsoc2013-empathy-4dce79a6d7b56185edfe19cf2803f1b71c8ddc74.tar.gz gsoc2013-empathy-4dce79a6d7b56185edfe19cf2803f1b71c8ddc74.tar.bz2 gsoc2013-empathy-4dce79a6d7b56185edfe19cf2803f1b71c8ddc74.tar.lz gsoc2013-empathy-4dce79a6d7b56185edfe19cf2803f1b71c8ddc74.tar.xz gsoc2013-empathy-4dce79a6d7b56185edfe19cf2803f1b71c8ddc74.tar.zst gsoc2013-empathy-4dce79a6d7b56185edfe19cf2803f1b71c8ddc74.zip |
use empathy_released to check if we are releasing or not
This allow us to release a 2.x.y.1 release without enabling Werror.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 8f1772c7a..b909dcbf9 100644 --- a/configure.ac +++ b/configure.ac @@ -1,21 +1,24 @@ -# Making releases: -# set the new version number: -# odd minor -> development series -# even minor -> stable series -# increment micro for each release within a series -# set empathy_nano_version to 0. +dnl If not 1, append datestamp to the version number +m4_define(empathy_released, 0) m4_define([empathy_major_version], [2]) m4_define([empathy_minor_version], [29]) m4_define([empathy_micro_version], [1]) -m4_define([empathy_nano_version], [1]) +m4_define([empathy_nano_version], [0]) +dnl Display the nano_version only if it's not '0' m4_define([empathy_base_version], [empathy_major_version.empathy_minor_version.empathy_micro_version]) -m4_define([empathy_version], +m4_define([empathy_full_version], [m4_if(empathy_nano_version, 0, [empathy_base_version], [empathy_base_version].[empathy_nano_version])]) +m4_define(empathy_maybe_datestamp, + m4_esyscmd([if test x]empathy_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi])) + +m4_define(empathy_version, empathy_full_version[]empathy_maybe_datestamp) + + AC_INIT(Empathy, empathy_version, http://bugzilla.gnome.org/browse.cgi?product=empathy) @@ -103,7 +106,7 @@ AS_COMPILER_FLAG(-Wno-unused-parameter, wno_unused_parameter=yes, wno_unused_parameter=no) -ifelse(empathy_nano_version, 0, [], +ifelse(empathy_released, 1, [], [ if test x$werror = xyes; then ERROR_CFLAGS="$ERROR_CFLAGS -Werror" |