mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Make bob builds show the full source git commit hash in buildinfo.
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.
This commit is contained in:
parent
7e14730b83
commit
5687a16fc1
1
Buildscr
1
Buildscr
@ -126,6 +126,7 @@ ifneq "$(SNAPSHOT)" "" in putty do echo '$#define SNAPSHOT' >> version.h
|
||||
in putty do echo '$#define TEXTVER "$(Textver)"' >> version.h
|
||||
in putty do echo '$#define SSHVER "$(Sshver)"' >> version.h
|
||||
in putty do echo '$#define BINARY_VERSION $(Winvercommas)' >> version.h
|
||||
in putty do echo '$#define SOURCE_COMMIT "$(vcsfullid)"' >> version.h
|
||||
|
||||
# Set up the extra arguments for the main Windows nmake command. The
|
||||
# user can define XFLAGS and MAKEARGS on the bob command line, to pass
|
||||
|
6
Recipe
6
Recipe
@ -330,10 +330,10 @@ puttyapp : [XT] GTKTERM uxmisc misc ldisc settings uxsel U_BE_ALL uxstore
|
||||
+ xpmpucfg gtkapp
|
||||
osxlaunch : [UT] osxlaunch
|
||||
|
||||
fuzzterm : [UT] UXTERM CHARSET misc uxmisc uxucs fuzzterm time settings
|
||||
fuzzterm : [UT] UXTERM CHARSET misc version uxmisc uxucs fuzzterm time settings
|
||||
+ uxstore be_none
|
||||
testbn : [UT] testbn sshbn misc conf tree234 uxmisc
|
||||
testbn : [C] testbn sshbn misc conf tree234 winmisc LIBS
|
||||
testbn : [UT] testbn sshbn misc version conf tree234 uxmisc
|
||||
testbn : [C] testbn sshbn misc version conf tree234 winmisc LIBS
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# On Windows, provide a means of removing local test binaries that we
|
||||
|
3
misc.c
3
misc.c
@ -1151,6 +1151,7 @@ int strendswith(const char *s, const char *t)
|
||||
char *buildinfo(const char *newline)
|
||||
{
|
||||
strbuf *buf = strbuf_new();
|
||||
extern const char commitid[]; /* in commitid.c */
|
||||
|
||||
strbuf_catf(buf, "Build platform: %d-bit %s",
|
||||
(int)(CHAR_BIT * sizeof(void *)),
|
||||
@ -1207,5 +1208,7 @@ char *buildinfo(const char *newline)
|
||||
strbuf_catf(buf, "%sBuild option: DEBUG", newline);
|
||||
#endif
|
||||
|
||||
strbuf_catf(buf, "%sSource commit: %s", newline, commitid);
|
||||
|
||||
return strbuf_to_str(buf);
|
||||
}
|
||||
|
@ -12,6 +12,7 @@
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user