summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-11-12 23:22:22 (GMT)
committerBrad King <brad.king@kitware.com>2007-11-12 23:22:22 (GMT)
commit121b1db7417679ef7c158d3b6ad269060e195d5e (patch)
treec8512c558168cc1bcbda32fa61826278a36e648b /Source
parentfa5f9836514d95d482b0fa8da7a4e2bed00b6f3c (diff)
downloadCMake-121b1db7417679ef7c158d3b6ad269060e195d5e.zip
CMake-121b1db7417679ef7c158d3b6ad269060e195d5e.tar.gz
CMake-121b1db7417679ef7c158d3b6ad269060e195d5e.tar.bz2
ENH: Created better names and a more convenient set of version date stamp macros.
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/DateStamp.h.in52
-rwxr-xr-xSource/kwsys/kwsysDateStamp.py6
2 files changed, 29 insertions, 29 deletions
diff --git a/Source/kwsys/DateStamp.h.in b/Source/kwsys/DateStamp.h.in
index 31550dc..33391fc 100644
--- a/Source/kwsys/DateStamp.h.in
+++ b/Source/kwsys/DateStamp.h.in
@@ -14,31 +14,31 @@
#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@"
+/** Version date integer year. The format is CCYY. */
+#define @KWSYS_NAMESPACE@_DATE_STAMP_YEAR @KWSYS_DATE_STAMP_YEAR@
+
+/** Version date integer month. The format is MM. */
+#define @KWSYS_NAMESPACE@_DATE_STAMP_MONTH @KWSYS_DATE_STAMP_MONTH@
+
+/** Version date integer day. The format is DD. */
+#define @KWSYS_NAMESPACE@_DATE_STAMP_DAY @KWSYS_DATE_STAMP_DAY@
+
+/** Version date full integer. The format is CCYYMMDD. */
+#define @KWSYS_NAMESPACE@_DATE_STAMP_FULL @KWSYS_DATE_STAMP_YEAR@@KWSYS_DATE_STAMP_MONTH@@KWSYS_DATE_STAMP_DAY@
+
+/** Version date string year. The format is "CCYY". */
+#define @KWSYS_NAMESPACE@_DATE_STAMP_STRING_YEAR "@KWSYS_DATE_STAMP_YEAR@"
+
+/** Version date string month. The format is "MM". */
+#define @KWSYS_NAMESPACE@_DATE_STAMP_STRING_MONTH "@KWSYS_DATE_STAMP_MONTH@"
+
+/** Version date string day. The format is "DD". */
+#define @KWSYS_NAMESPACE@_DATE_STAMP_STRING_DAY "@KWSYS_DATE_STAMP_DAY@"
+
+/** Version date full string. The format is "CCYYMMDD". */
+#define @KWSYS_NAMESPACE@_DATE_STAMP_STRING_FULL "@KWSYS_DATE_STAMP_YEAR@@KWSYS_DATE_STAMP_MONTH@@KWSYS_DATE_STAMP_DAY@"
+
+/** Version date formatted string. The format is "CCYY-MM-DD". */
+#define @KWSYS_NAMESPACE@_DATE_STAMP_STRING "@KWSYS_DATE_STAMP_YEAR@-@KWSYS_DATE_STAMP_MONTH@-@KWSYS_DATE_STAMP_DAY@"
#endif
diff --git a/Source/kwsys/kwsysDateStamp.py b/Source/kwsys/kwsysDateStamp.py
index 4370c8a..e719a42 100755
--- a/Source/kwsys/kwsysDateStamp.py
+++ b/Source/kwsys/kwsysDateStamp.py
@@ -20,13 +20,13 @@ ct = time.localtime()
fout.write("""# Do not edit! Generated by kwsysDateStamp.py
# KWSys version date year component. Format is CCYY.
-SET(KWSYS_VERSION_DATE_YEAR %04u)
+SET(KWSYS_DATE_STAMP_YEAR %04u)
# KWSys version date month component. Format is MM.
-SET(KWSYS_VERSION_DATE_MONTH %02u)
+SET(KWSYS_DATE_STAMP_MONTH %02u)
# KWSys version date day component. Format is DD.
-SET(KWSYS_VERSION_DATE_DAY %02u)
+SET(KWSYS_DATE_STAMP_DAY %02u)
""" % (ct.tm_year, ct.tm_mon, ct.tm_mday))
fout.close()