ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/FGolf/BatchSubmitCMS2/writeConfig.sh
(Generate patch)

Comparing UserCode/FGolf/BatchSubmitCMS2/writeConfig.sh (file contents):
Revision 1.2 by fgolf, Fri Apr 20 16:22:27 2012 UTC vs.
Revision 1.4 by kelley, Fri Jun 29 21:55:37 2012 UTC

# Line 18 | Line 18 | ERR="${LOGDIR}/job_logs/1e.\$(Cluster).\
18   #
19   # prepare input sandbox
20   #
21 + g++ sweepRoot.C -o sweepRoot `root-config --cflags --libs`
22   cd ${DIR}/job_input
23   rm input.*
24 + mv ../sweepRoot .
25   tar -czf input.tgz --exclude='*CVS*' *
26   cd ${DIR}
27  
# Line 49 | Line 51 | output=${OUT}
51   error =${ERR}
52   notification=Never
53   x509userproxy=${PROXY}
54 < " > condor_${COPYDIRBASE}.cmd
54 > " > condor_${COPYDIRBASE##*/}.cmd
55  
56      #
57      # now set the rest of the arguments
58      # for each job
59      #
60  
61 <    for FILE in `ls ${DATADIR}/*.root`; do
61 >    if [ -d $DATADIR ]; then
62 >        DATADIR=${DATADIR}/*.root  
63 >    fi
64 >    for FILE in `ls ${DATADIR}`; do
65          echo "
66   executable=${EXE}
67   transfer_executable=True
68   arguments=`echo ${FILE##*/} | sed 's/\.root//g'` ${DATATYPE} ${FILE} ${REALDATA} ${RUNLIST} ${COPYDIR}
69   queue
70 < " >> condor_${COPYDIRBASE}.cmd
70 > " >> condor_${COPYDIRBASE##*/}.cmd
71      done
72  
73 < echo "[writeConfig] wrote condor_${COPYDIRBASE}.cmd"
73 > echo "[writeConfig] wrote condor_${COPYDIRBASE##*/}.cmd"
74  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines