13#include "Package2HTML.h"
14#include "PackageSql.h"
16#include <RtypesCore.h>
43int main(
int argc,
char* argv[]) {
45 Hal::Cout::PrintInfo(
"No arguments! run: hal-report --help to get help", Hal::EInfo::kCriticalError);
48 TString arg1 = argv[1];
49 if (arg1 ==
"--help") {
50 std::cout <<
" Usage:" << std::endl;
51 std::cout <<
"hal-report inFile outFile [OPTIONS] to extract files to local file" << std::endl;
52 std::cout <<
"hal-report inFile to extract files to local database" << std::endl;
53 std::cout <<
"OPTIONS:" << std::endl;
54 std::cout <<
"--online - extract files but use jsroot from official site " << std::endl;
55 std::cout <<
"--gz - compress archive to zip with using tar " << std::endl;
64 gSystem->Load(
"libTree");
67 for (
int i = 3; i < argc; i++) {
68 TString temp = argv[i];
70 if (temp.EqualTo(
"--gz")) zip = kTRUE;
76 TString command = Form(
"tar -czvf %s.tar.gz %s", argv[2], argv[2]);
77 gSystem->Exec(command);
78 gSystem->Exec(Form(
"rm -rf %s", argv[2]));
static void PrintInfo(TString text, Hal::EInfo status)
static void SetOnline(Bool_t online)