From: jacob Date: Sat, 1 Oct 2005 12:36:46 +0000 (+0000) Subject: Split out SVN_REV from SNAPSHOT define. This is to support `win-versioninfo', X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/1cb3ebfe5d7e1b74a1f9d764547958d6c979623f?hp=6894fbe1bde8ec1a4989417a2b68b4d84134ee20 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 --- 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