#include "merge.C"
#include <TError.h>
#include <cstdlib>
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 32 of file merge.cpp.
33 bool dbg =
false, fixup =
true;
36 for (
int i = 1; i <
argc; ++i ) {
37 if ( *
argv[i] ==
'-' ) {
58 if ( input.
empty() ) {
59 ::printf(
"\nERROR: No input file(s) supplied\n\n" );
61 }
else if (
output.empty() ) {
62 ::printf(
"\nERROR: No output file supplied.\n\n" );
65 gROOT->SetBatch( kTRUE );
66 s_err = SetErrorHandler( err_handler );
67 for (
size_t i = 0; i < input.
size(); ++i ) {
68 const string& in = input[i];
69 bool do_fixup = fixup && ( ( i + 1 ) == input.
size() );
73 if ( result == MERGE_ERROR ) {
74 printf(
"\nERROR: File merge failed after %ld files.\n\n",
long( i + 1 ) );