mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
5687a16fc1
The Windows binaries, and both Windows and Unix source archives, output from a bob build will now include the full SHA-1 of the source git commit in their buildinfo (hence in all the About boxes and command-line version output). This will be occasionally useful to me at release time (there was that one embarrassing incident where I managed not to notice that I'd made a release build from entirely the wrong commit), but mostly, it just seems like an obviously useful thing to put in a general buildinfo section now that there is one.
22 lines
531 B
C
22 lines
531 B
C
/*
|
|
* PuTTY version numbering
|
|
*/
|
|
|
|
/*
|
|
* The difficult part of deciding what goes in these version strings
|
|
* is done in Buildscr, and then written into version.h. All we have
|
|
* to do here is to drop it into variables of the right names.
|
|
*/
|
|
|
|
#include "version.h"
|
|
|
|
const char ver[] = TEXTVER;
|
|
const char sshver[] = SSHVER;
|
|
const char commitid[] = SOURCE_COMMIT;
|
|
|
|
/*
|
|
* 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) };
|