gnome-desktop r5455 - trunk



Author: vuntz
Date: Fri Mar 27 19:30:23 2009
New Revision: 5455
URL: http://svn.gnome.org/viewvc/gnome-desktop?rev=5455&view=rev

Log:
2009-03-27  Vincent Untz  <vuntz gnome org>

	* configure.in:
	* gnome-version.xml.in.in: add a --disable-date-in-gnome-version
	configure option to not put the build date in gnome-version.xml. The
	build date is actually not that useful since it's not the build date
	for all of GNOME, but for this specific package. So it can be
	confusing.


Modified:
   trunk/ChangeLog
   trunk/configure.in
   trunk/gnome-version.xml.in.in

Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in	(original)
+++ trunk/configure.in	Fri Mar 27 19:30:23 2009
@@ -45,11 +45,25 @@
   GNOME_DISTRIBUTOR=$with_gnome_distributor
 fi
 
+AC_ARG_ENABLE([date-in-gnome-version],
+	[AS_HELP_STRING([--disable-date-in-gnome-version],[do not put the build date in gnome-version.xml])],
+	[],[enable_date_in_gnome_version=yes])
+if test "$enable_date_in_gnome_version" = "no"; then
+	GNOME_DATE=
+	GNOME_DATE_COMMENT_START="<!--"
+	GNOME_DATE_COMMENT_END="-->"
+else
+	GNOME_DATE_COMMENT_START=
+	GNOME_DATE_COMMENT_END=
+fi
+
 AC_SUBST(GNOME_PLATFORM)
 AC_SUBST(GNOME_MINOR)
 AC_SUBST(GNOME_MICRO)
 AC_SUBST(GNOME_DISTRIBUTOR)
 AC_SUBST(GNOME_DATE)
+AC_SUBST(GNOME_DATE_COMMENT_START)
+AC_SUBST(GNOME_DATE_COMMENT_END)
 
 GNOME_COMMON_INIT
 GNOME_DEBUG_CHECK

Modified: trunk/gnome-version.xml.in.in
==============================================================================
--- trunk/gnome-version.xml.in.in	(original)
+++ trunk/gnome-version.xml.in.in	Fri Mar 27 19:30:23 2009
@@ -4,7 +4,7 @@
   <minor>@GNOME_MINOR@</minor>
   <micro>@GNOME_MICRO@</micro>
   <distributor>@GNOME_DISTRIBUTOR@</distributor>
-  <date>@GNOME_DATE@</date>
+  @GNOME_DATE_COMMENT_START@<date>@GNOME_DATE@</date>@GNOME_DATE_COMMENT_END@
   <description>
     <!-- NOTE TO AUTHORS: Do not put anything in the following paragraphs that
     will be substituted by the configure script. Otherwise you will break



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