From 1cb3ebfe5d7e1b74a1f9d764547958d6c979623f Mon Sep 17 00:00:00 2001 From: jacob Date: Sat, 1 Oct 2005 12:36:46 +0000 Subject: [PATCH 1/1] Split out SVN_REV from SNAPSHOT define. This is to support `win-versioninfo', 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 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/version.c b/version.c index c39709cd..da7e11ca 100644 --- 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 -- 2.11.0