ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitAna/scripts/setup.sh
(Generate patch)

Comparing UserCode/MitAna/scripts/setup.sh (file contents):
Revision 1.2 by sixie, Wed Sep 17 19:27:05 2008 UTC vs.
Revision 1.3 by loizides, Sat Sep 27 06:15:18 2008 UTC

# Line 18 | Line 18 | echo "Setup called for $CMSSW_VERSION ($
18  
19   cd $CMSSW_BASE/src;
20  
21 < if      test $version -lt 20108; then
21 > if test $version -lt 20108; then
22      echo "Nothing to be done, exiting";
23      exit 1;
24   elif test $version -eq 20108; then
# Line 27 | Line 27 | elif test $version -eq 20108; then
27      cvs co -r V02-09-00 JetMETCorrections/Modules;
28  
29      #to remove annoying Warning messages for the jet to vertex associator.
30 <    cvs co JetMETCorrections/JetVertexAssociation
31 <    cat JetMETCorrections/JetVertexAssociation/src/JetVertexMain.cc | sed -e 's/else  std::cout << \"\[Jets\] JetVertexAssociation: Warning\! problems for  Algo = 2: possible division by zero ..\" << std::endl;//' > tmp
32 <    mv tmp JetMETCorrections/JetVertexAssociation/src/JetVertexMain.cc
30 >    cvs co JetMETCorrections/JetVertexAssociation;
31 >    TMP=`mktemp`;
32 >    cat JetMETCorrections/JetVertexAssociation/src/JetVertexMain.cc |
33 >    sed -e 's/else  std::cout << \"\[Jets\] JetVertexAssociation: Warning\! problems for  Algo = 2: possible division by zero ..\" << std::endl;//' > $TMP;
34 >    mv $TMP JetMETCorrections/JetVertexAssociation/src/JetVertexMain.cc
35 > else
36 >    echo "Nothing known about this version, exiting";
37 >    exit 1;
38   fi
39  
40   echo "Setup done; you probably want to compile your project area now";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines