From 795927e72a9b5e0a14ea7125c31972d2fc3501dc Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 19 Jan 2007 12:31:56 +0000 Subject: [PATCH] Add a "released" flag to configure.ac: if not 1, append the date to the version. When making official releases please do the following: * set dbus_python_released to 1 and set the new version * make the release tarball (make distcheck) * commit, tag * change dbus_python_released back to 0 and commit again --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 89544c3..4ea8acb 100644 --- a/configure.ac +++ b/configure.ac @@ -1,11 +1,17 @@ -*- mode: m4 -*- AC_PREREQ(2.52) +dnl If 1, append datestamp to the version number +m4_define(dbus_python_released, 0) dnl The dbus-python version number (must actually be numeric at the moment) m4_define(dbus_python_major_version, 0) m4_define(dbus_python_minor_version, 79) m4_define(dbus_python_micro_version, 93) -m4_define(dbus_python_version, dbus_python_major_version.dbus_python_minor_version.dbus_python_micro_version) + +m4_define(dbus_python_maybe_datestamp, + m4_esyscmd([if test x]dbus_python_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi])) + +m4_define(dbus_python_version, dbus_python_major_version.dbus_python_minor_version.dbus_python_micro_version[]dbus_python_maybe_datestamp) dnl versions of packages we require ... dnl m4_define(glib_required_version, 2.8.0) -- 2.11.4.GIT