summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-22 21:17:59 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-02-22 21:17:59 -0800
commit65f010b8c4ef0e4fa5fc6a0679173f81c7a4b626 (patch)
treebc066e2ca257351adf97261c2dce4458e280cd8e
parent6cd34b45c87717ae7901993e32b99a43652fa0f3 (diff)
Move release date from transset.c to configure.ac so we remember to update it
Currently our 2012 release prints: released: 2007-09-21 when you run transset --version Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac4
-rw-r--r--transSet.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index cb84449..9d93fcd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,6 +3,7 @@
AC_PREREQ([2.60])
AC_INIT([transset], [1.0.0],
[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [transset])
+RELEASE_DATE="2012-06-07"
AC_CONFIG_SRCDIR([Makefile.am])
AC_CONFIG_HEADERS([config.h])
@@ -19,6 +20,9 @@ XORG_DEFAULT_OPTIONS
# Obtain compiler/linker options for the transset dependencies
PKG_CHECK_MODULES(TRANSSET, x11 xproto >= 7.0.17)
+AC_DEFINE_UNQUOTED(RELEASE_DATE, ["$RELEASE_DATE"],
+ [Release date of this package])
+
AC_CONFIG_FILES([
Makefile
man/Makefile])
diff --git a/transSet.c b/transSet.c
index aef2330..7cfbe51 100644
--- a/transSet.c
+++ b/transSet.c
@@ -30,7 +30,6 @@
#endif
#define VERSIONSTR "6"
-#define RELEASEDATESTR "2007-09-21"
#include <stdio.h>
#include <X11/Xlib.h>
@@ -208,7 +207,7 @@ main (int argc, char **argv)
break;
case 'V':
fprintf (stderr, "%s\nversion: %s\nreleased: %s\n",
- PACKAGE_STRING, VERSIONSTR, RELEASEDATESTR);
+ PACKAGE_STRING, VERSIONSTR, RELEASE_DATE);
exit (1);
break;
default: