mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
ab795ba008
a fourth class of PuTTY version tags in addition to release, snapshot and unidentified: we now have `Custom build r1234', indicating a build made from that SVN revision in a context other than that of a dated snapshot. The build script generates these when it doesn't know what else to do; `unidentified builds' will now only occur when you run nmake from the command line. Also, the build script now generates sensible version data in the installer to match this. So I _think_ we should now be set to use bob to generate installer builds of the nightly snapshots, although of course I'll have to wait until tomorrow to test one. [originally from svn r7211]
43 lines
869 B
C
43 lines
869 B
C
/*
|
|
* PuTTY version numbering
|
|
*/
|
|
|
|
#define STR1(x) #x
|
|
#define STR(x) STR1(x)
|
|
|
|
#if defined 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
|
|
|
|
char ver[] = "Release " STR(RELEASE);
|
|
char sshver[] = "PuTTY-Release-" STR(RELEASE);
|
|
|
|
#elif defined SVN_REV
|
|
|
|
char ver[] = "Custom build r" STR(SVN_REV);
|
|
char sshver[] = "PuTTY-Custom-r" STR(SVN_REV);
|
|
|
|
#else
|
|
|
|
char ver[] = "Unidentified build, " __DATE__ " " __TIME__;
|
|
char sshver[] = "PuTTY-Local: " __DATE__ " " __TIME__;
|
|
|
|
#endif
|
|
|
|
/*
|
|
* SSH local version string MUST be under 40 characters. Here's a
|
|
* compile time assertion to verify this.
|
|
*/
|
|
enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };
|