2 * PuTTY version numbering
\r
6 #define STR(x) STR1(x)
\r
8 #ifdef INCLUDE_EMPTY_H
\r
10 * Horrible hack to force version.o to be rebuilt unconditionally in
\r
11 * the automake world: empty.h is an empty header file, created by the
\r
12 * makefile and forcibly updated every time make is run. Including it
\r
13 * here causes automake to track it as a dependency, which will cause
\r
14 * version.o to be rebuilt too.
\r
16 * The space between # and include causes mkfiles.pl's dependency
\r
17 * scanner (for all other makefile types) to ignore this include,
\r
18 * which is correct because only the automake makefile passes
\r
19 * -DINCLUDE_EMPTY_H to enable it.
\r
24 #if defined SNAPSHOT
\r
27 #define SNAPSHOT_TEXT STR(SNAPSHOT) ":r" STR(SVN_REV)
\r
29 #define SNAPSHOT_TEXT STR(SNAPSHOT)
\r
32 char ver[] = "Development snapshot " SNAPSHOT_TEXT;
\r
33 char sshver[] = "PuTTY-Snapshot-" SNAPSHOT_TEXT;
\r
35 #undef SNAPSHOT_TEXT
\r
37 #elif defined RELEASE
\r
39 char ver[] = "Release " STR(RELEASE);
\r
40 char sshver[] = "PuTTY-Release-" STR(RELEASE);
\r
42 #elif defined PRERELEASE
\r
44 char ver[] = "Pre-release " STR(PRERELEASE) ":r" STR(SVN_REV);
\r
45 char sshver[] = "PuTTY-Prerelease-" STR(PRERELEASE) ":r" STR(SVN_REV);
\r
47 #elif defined SVN_REV
\r
49 char ver[] = "Custom build r" STR(SVN_REV) ", " __DATE__ " " __TIME__;
\r
50 char sshver[] = "PuTTY-Custom-r" STR(SVN_REV);
\r
54 char ver[] = "Unidentified build, " __DATE__ " " __TIME__;
\r
55 char sshver[] = "PuTTY-Local: " __DATE__ " " __TIME__;
\r
60 * SSH local version string MUST be under 40 characters. Here's a
\r
61 * compile time assertion to verify this.
\r
63 enum { vorpal_sword = 1 / (sizeof(sshver) <= 40) };
\r