#include "merge/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 22 of file merge.cpp.
23 bool dbg =
false, fixup =
true;
26 for (
int i = 1; i <
argc; ++i ) {
27 if ( *
argv[i] ==
'-' ) {
48 if ( input.
empty() ) {
49 ::printf(
"\nERROR: No input file(s) supplied\n\n" );
51 }
else if (
output.empty() ) {
52 ::printf(
"\nERROR: No output file supplied.\n\n" );
55 gROOT->SetBatch( kTRUE );
56 s_err = SetErrorHandler( err_handler );
57 for (
size_t i = 0; i < input.
size(); ++i ) {
58 const string& in = input[i];
59 bool do_fixup = fixup && ( ( i + 1 ) == input.
size() );
63 if ( result == MERGE_ERROR ) {
64 printf(
"\nERROR: File merge failed after %ld files.\n\n",
long( i + 1 ) );
int merge(const char *target, const char *source, bool fixup=false, bool dbg=true)
void usage(std::string argv0)
void toupper(std::string &s)