Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:59:45

0001 #!/bin/bash
0002 
0003 executable=`echo $0 | sed 's/.sh/.C/'` #assume the .sh and .C file have the same name
0004 arguments=''
0005 if [ $# -ge 1 ]; then arguments=$arguments"($1" ;fi
0006 if [ $# -ge 2 ]; then arguments=$arguments",$2" ;fi
0007 if [ $# -ge 3 ]; then arguments=$arguments",$3" ;fi
0008 if [ $# -ge 4 ]; then arguments=$arguments",$4" ;fi
0009 if [ $# -ge 5 ]; then arguments=$arguments",$5" ;fi
0010 if [ $# -ge 6 ]; then arguments=$arguments",$6" ;fi
0011 if [ $# -ge 1 ]; then arguments=$arguments");" ;fi
0012 
0013 root -l -b << EOF
0014   TString makeshared(gSystem->GetMakeSharedLib());
0015   makeshared.ReplaceAll("-W ", "-Wno-deprecated-declarations -Wno-deprecated -Wno-unused-local-typedefs -Wno-attributes ");
0016   makeshared.ReplaceAll("-Woverloaded-virtual ", " ");
0017   makeshared.ReplaceAll("-Wshadow ", " -std=c++0x -D__USE_XOPEN2K8 ");
0018   cout << "Compilling with the following arguments: " << makeshared << endl;
0019   gSystem->SetMakeSharedLib(makeshared);
0020   gSystem->Load("libFWCoreFWLite");
0021   AutoLibraryLoader::enable();
0022   gSystem->Load("libDataFormatsFWLite.so");
0023   gSystem->Load("libDataFormatsCommon.so");
0024   gSystem->Load("libDataFormatsHepMCCandidate.so");
0025   gSystem->Load("libCommonToolsTrackerMap.so");
0026   .x $executable+$arguments
0027 EOF
0028