Split out SVN_REV from SNAPSHOT define. This is to support `win-versioninfo',
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Oct 2005 12:36:46 +0000 (12:36 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 1 Oct 2005 12:36:46 +0000 (12:36 +0000)
but since Simon's made the corresponding change to the build process, this bit
needs checking in now (it should be harmless).

(The documentation in Recipe is slightly out of date; with luck I'll be
checking in `win-versioninfo' changes soon, and I can't be bothered to
disentangle the relevant changes in the meantime.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@6367 cda61777-01e9-0310-a592-d414129be87e

version.c

index c39709c..da7e11c 100644 (file)
--- a/version.c
+++ b/version.c
@@ -7,8 +7,16 @@
 
 #if defined SNAPSHOT
 
-char ver[] = "Development snapshot " STR(SNAPSHOT);
-char sshver[] = "PuTTY-Snapshot-" STR(SNAPSHOT);
+#if defined SVN_REV
+#define SNAPSHOT_TEXT STR(SNAPSHOT) ":r" STR(SVN_REV)
+#else
+#define SNAPSHOT_TEXT STR(SNAPSHOT)
+#endif
+
+char ver[] = "Development snapshot " SNAPSHOT_TEXT;
+char sshver[] = "PuTTY-Snapshot-" SNAPSHOT_TEXT;
+
+#undef SNAPSHOT_TEXT
 
 #elif defined RELEASE