Rename the version's "revision" to "build"

That "revision" was inherited from SVN days but had been since then
used to give information about the build: "custom_build", "official",
"<some distro's build>".

It can now be overridden with the BUILD_NAME environment variable.
This commit is contained in:
Rémi Verschelde 2017-11-19 21:26:05 +01:00
parent 6947bed015
commit 3fd23da5ee
5 changed files with 12 additions and 12 deletions

View file

@ -85,7 +85,7 @@ Dictionary Engine::get_version_info() const {
dict["patch"] = 0;
#endif
dict["status"] = VERSION_STATUS;
dict["revision"] = VERSION_REVISION;
dict["build"] = VERSION_BUILD;
dict["year"] = VERSION_YEAR;
String hash = VERSION_HASH;
@ -94,7 +94,7 @@ Dictionary Engine::get_version_info() const {
String stringver = String(dict["major"]) + "." + String(dict["minor"]);
if ((int)dict["patch"] != 0)
stringver += "." + String(dict["patch"]);
stringver += "-" + String(dict["status"]) + " (" + String(dict["revision"]) + ")";
stringver += "-" + String(dict["status"]) + " (" + String(dict["build"]) + ")";
dict["string"] = stringver;
return dict;