DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
oks_git_repository.cxx
Go to the documentation of this file.
1
8#include "oks/kernel.hpp"
9
10#include <string.h>
11#include <stdlib.h>
12
13using namespace dunedaq::oks;
14
15int
16main(int argc, char **argv)
17{
18 if(argc > 1)
19 {
20 if(!strcmp("-h", argv[1]) || !strcmp("--help", argv[1]))
21 {
22 std::cout << "This program extracts OKS git repository from TDAQ_DB_REPOSITORY process environment variable." << std::endl;
23 return EXIT_SUCCESS;
24 }
25 }
26
27 std::cout << OksKernel::get_repository_root() << std::endl;
28
29 return EXIT_SUCCESS;
30}
static const std::string & get_repository_root()
Get OKS repository root.
Definition kernel.cpp:304
int main(int argc, char **argv)