#include "km3net/version-consumer/version.h"
#include <string>
Go to the source code of this file.
◆ 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}