soylent r41 - trunk



Author: treitter
Date: Mon Jan  7 06:05:26 2008
New Revision: 41
URL: http://svn.gnome.org/viewvc/soylent?rev=41&view=rev

Log:
Turn on extra debugging, etc. if the release micro version is odd (it will be even for all future releases)

Modified:
   trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac	(original)
+++ trunk/configure.ac	Mon Jan  7 06:05:26 2008
@@ -17,15 +17,41 @@
 AC_PROG_CC
 AC_STDC_HEADERS
 
-dnl This is hard-coded to maintainer mode until we start doing releases
-dnl FIXME - it'd be best to do this like Gstreamer, based on the version number
-SOYLENT_RELEASE="no"
+dnl Soylent-specific macros
+
+AC_DEFUN([SOYLENT_RELEASE],
+[
+  AC_MSG_CHECKING(whether this is a release)
+
+  MICRO=$(echo soylent_version | cut -d'.' -f3)
+  PACKAGE_VERSION_RELEASE=0
+
+  if test x"$MICRO" = x ; then
+    MICRO=0
+  fi
+
+  PACKAGE_VERSION_RELEASE=$(( (MICRO % 2) == 0 ))
+
+  if test "x$PACKAGE_VERSION_RELEASE" = "x0" ; then
+    AC_MSG_RESULT([no])
+  else
+    AC_MSG_RESULT([yes])
+  fi
+
+  AC_SUBST(PACKAGE_VERSION_RELEASE)
+])
+
+dnl Calling our local macros
+
+dnl PACKAGE_VERSION_RELEASE = { 0: micro number is odd (non-release),
+dnl                             1: otherwise }
+SOYLENT_RELEASE
 
 EMPATHY_REQUIRED_MIN=0.13
 
 GNOME_COMMON_INIT
 GNOME_DEBUG_CHECK
-if test "x$SOYLENT_RELEASE" = "xyes"
+if test "x$PACKAGE_VERSION_RELEASE" = "x1"
 then
   GNOME_COMPILE_WARNINGS([minimum])
 else



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]