summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/DateStamp.h.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-11-12 22:34:14 (GMT)
committerBrad King <brad.king@kitware.com>2007-11-12 22:34:14 (GMT)
commitf8a5d485a064820b62f8a853d107cb23c114efb0 (patch)
treeee0497f84f348a151a503443a9eb86bd39c3f430 /Source/kwsys/DateStamp.h.in
parenta546ba7ed496312137202cdb356ebf739350cf5e (diff)
downloadCMake-f8a5d485a064820b62f8a853d107cb23c114efb0.zip
CMake-f8a5d485a064820b62f8a853d107cb23c114efb0.tar.gz
CMake-f8a5d485a064820b62f8a853d107cb23c114efb0.tar.bz2
ENH: Adding DateStamp feature to KWSys. This provides a header file giving preprocessor access to a dated version. The 'datestamp' will be updated automatically every day by a script.
Diffstat (limited to 'Source/kwsys/DateStamp.h.in')
-rw-r--r--Source/kwsys/DateStamp.h.in44
1 files changed, 44 insertions, 0 deletions
diff --git a/Source/kwsys/DateStamp.h.in b/Source/kwsys/DateStamp.h.in
new file mode 100644
index 0000000..31550dc
--- /dev/null
+++ b/Source/kwsys/DateStamp.h.in
@@ -0,0 +1,44 @@
+/*=========================================================================
+
+ Program: KWSys - Kitware System Library
+ Module: $RCSfile$
+
+ Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved.
+ See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even
+ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ PURPOSE. See the above copyright notices for more information.
+
+=========================================================================*/
+#ifndef @KWSYS_NAMESPACE@_DateStamp_h
+#define @KWSYS_NAMESPACE@_DateStamp_h
+
+/**
+ * Version date year component. The format is CCYY.
+ */
+#define @KWSYS_NAMESPACE@_VERSION_DATE_YEAR @KWSYS_VERSION_DATE_YEAR@
+
+/**
+ * Version date month component. The format is MM.
+ */
+#define @KWSYS_NAMESPACE@_VERSION_DATE_MONTH @KWSYS_VERSION_DATE_MONTH@
+
+/**
+ * Version date day component. The format is DD.
+ */
+#define @KWSYS_NAMESPACE@_VERSION_DATE_DAY @KWSYS_VERSION_DATE_DAY@
+
+/**
+ * Version date accessible from preprocessor.
+ * This is an integer in the format CCYYMMDD.
+ */
+#define @KWSYS_NAMESPACE@_VERSION_DATE_FULL @KWSYS_VERSION_DATE_YEAR@@KWSYS_VERSION_DATE_MONTH@@KWSYS_VERSION_DATE_DAY@
+
+/**
+ * Version date as a string literal.
+ * The format is "CCYY-MM-DD".
+ */
+#define @KWSYS_NAMESPACE@_VERSION_DATE_STRING "@KWSYS_VERSION_DATE_YEAR@-@KWSYS_VERSION_DATE_MONTH@-@KWSYS_VERSION_DATE_DAY@"
+
+#endif