blob: 04b800863f530339a5ed36bcf1499e60d0bc028d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#include "last_getopt.h"
#include "last_getopt_support.h"
#include "modchooser.h"
#include "opt.h"
#include "opt2.h"
#include "posix_getopt.h"
#include "ygetopt.h"
#include <library/cpp/svnversion/svnversion.h>
#include <library/cpp/build_info/build_info.h>
namespace NLastGetoptPrivate {
TString InitVersionString() {
TString ts = GetProgramSvnVersion();
ts += "\n";
ts += GetBuildInfo();
TString sandboxTaskId = GetSandboxTaskId();
if (sandboxTaskId != TString("0")) {
ts += "\nSandbox task id: ";
ts += sandboxTaskId;
}
return ts;
}
TString InitShortVersionString() {
TString ts = GetProgramShortVersionData();
return ts;
}
TString& VersionString();
TString& ShortVersionString();
struct TInit {
TInit() {
VersionString() = InitVersionString();
ShortVersionString() = InitShortVersionString();
}
} Init;
}
|