DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
oks_git_repository.cxx File Reference
#include "oks/kernel.hpp"
#include <string.h>
#include <stdlib.h>
Include dependency graph for oks_git_repository.cxx:

Go to the source code of this file.

Functions

int main (int argc, char **argv)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Definition at line 21 of file oks_git_repository.cxx.

22{
23 if(argc > 1)
24 {
25 if(!strcmp("-h", argv[1]) || !strcmp("--help", argv[1]))
26 {
27 std::cout << "This program extracts OKS git repository from TDAQ_DB_REPOSITORY process environment variable." << std::endl;
28 return EXIT_SUCCESS;
29 }
30 }
31
32 std::cout << OksKernel::get_repository_root() << std::endl;
33
34 return EXIT_SUCCESS;
35}
static const std::string & get_repository_root()
Get OKS repository root.
Definition kernel.cpp:309