aboutsummaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-05-15 10:31:11 +0000
committerSimon Tatham <anakin@pobox.com>2005-05-15 10:31:11 +0000
commitc05b4697a8f87e08e52b8014186c647309976fc2 (patch)
tree91de7c1956c85c5b115f15ea74bb037213019a8e /version.c
parent68d27f05262b7928b4d755d2e27868cfc51b3007 (diff)
downloadpuzzles-c05b4697a8f87e08e52b8014186c647309976fc2.zip
puzzles-c05b4697a8f87e08e52b8014186c647309976fc2.tar.gz
puzzles-c05b4697a8f87e08e52b8014186c647309976fc2.tar.bz2
puzzles-c05b4697a8f87e08e52b8014186c647309976fc2.tar.xz
Introduce a versioning mechanism, and an `About' box in all front
ends. Versioning will be done solely by Subversion revision number, since development on these puzzles is very incremental and gradual and there don't tend to be obvious points to place numbered releases. [originally from svn r5781]
Diffstat (limited to 'version.c')
-rw-r--r--version.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/version.c b/version.c
new file mode 100644
index 0000000..a44fbf6
--- /dev/null
+++ b/version.c
@@ -0,0 +1,16 @@
+/*
+ * Puzzles version numbering.
+ */
+
+#define STR1(x) #x
+#define STR(x) STR1(x)
+
+#if defined REVISION
+
+char ver[] = "Revision: r" STR(REVISION);
+
+#else
+
+char ver[] = "Unidentified build, " __DATE__ " " __TIME__;
+
+#endif