BOINC GAHP: add git SHA1 to version message

- also define BOINC_GAHP_VERSION to conform to GAHP spec (major.minor.subminor)
This commit is contained in:
Bernd Machenschalk 2017-08-15 09:10:48 +02:00
parent da64baf29d
commit 563af50792
1 changed files with 3 additions and 1 deletions

View File

@ -36,6 +36,8 @@
#include "remote_submit.h"
#include "svn_version.h"
#define BOINC_GAHP_VERSION "1.0.1"
using std::map;
using std::pair;
using std::set;
@ -703,7 +705,7 @@ int COMMAND::parse_command() {
}
void print_version(bool startup) {
BPRINTF("%s$GahpVersion: 1.0 %s BOINC\\ GAHP $\n", startup ? "" : "S ", __DATE__);
BPRINTF("%s$GahpVersion: %s %s BOINC\\ GAHP\\ GIT:%x $\n", startup ? "" : "S ", BOINC_GAHP_VERSION, __DATE__, GIT_REVISION);
}
int n_results() {