Jpp 21.0.0-rc.1-88-g0130508c4
the software that should make you happy
Loading...
Searching...
No Matches
main.cc File Reference
#include "km3net/version-consumer/version.h"
#include <string>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 5 of file version-consumer/main.cc.

5 {
6 const std::string version = version::consumer::getVersion();
7 const std::string describe = version::consumer::getGitDescribe();
8 const std::string commit = version::consumer::getGitCommit();
9 const bool dirty = version::consumer::getGitDirty();
10 const bool hasSource = version::consumer::hasVersionMetadata();
11
12 return version.empty() || describe.empty() || commit.empty() ||
13 (dirty && !hasSource)
14 ? 1
15 : 0;
16}