modilfied process_run
This commit is contained in:
parent
c9051347d0
commit
dde7202b3a
20
process_run
20
process_run
|
@ -59,7 +59,12 @@ if [ $Method -eq 1 ]; then
|
||||||
pos=`expr index "${temp}" /`
|
pos=`expr index "${temp}" /`
|
||||||
toFile=${temp:pos}".to"
|
toFile=${temp:pos}".to"
|
||||||
pos=`expr index "${toFile}" .`
|
pos=`expr index "${toFile}" .`
|
||||||
rootFile=${toFile:0:pos}"root"
|
pos=$((pos-1))
|
||||||
|
if [ ${isBuildEvents} -gt 1 ]; then
|
||||||
|
rootFile=${toFile:0:pos}"_${isBuildEvents}.root"
|
||||||
|
else
|
||||||
|
rootFile=${toFile:0:pos}".root"
|
||||||
|
fi
|
||||||
|
|
||||||
#echo ${RunFile}
|
#echo ${RunFile}
|
||||||
#echo ${toFile}
|
#echo ${toFile}
|
||||||
|
@ -95,17 +100,12 @@ if [ $Method -eq 1 ]; then
|
||||||
|
|
||||||
|
|
||||||
echo -e "$RED>>> `date` >>>>>>>>>>>>>>>>>>>>>>> Build Events $NC"
|
echo -e "$RED>>> `date` >>>>>>>>>>>>>>>>>>>>>>> Build Events $NC"
|
||||||
if [ ${isBuildEvents} -ge 1 ]; then
|
if [ ${isBuildEvents} -eq 1 ]; then
|
||||||
if [ -f ${rootFolder} ]; then # root exist
|
if [ -f ${rootFolder} ]; then # root exist
|
||||||
toDateTime=`stat -c "%Z" ${toFile} | sort -rn | head -1`
|
toDateTime=`stat -c "%Z" ${toFile} | sort -rn | head -1`
|
||||||
rootDateTime=`stat -c "%Z" ${rootFile} | sort -rn | head -1`
|
rootDateTime=`stat -c "%Z" ${rootFile} | sort -rn | head -1`
|
||||||
if [ ${toDateTime} -gt ${rootDateTime} ]; then
|
if [ ${toDateTime} -gt ${rootDateTime} ]; then
|
||||||
|
|
||||||
if [ ${isBuildEvents} -gt 1 ]; then
|
|
||||||
./armory/to2root ${toFile} $TIMEWINDOW ${isBuildEvents}
|
|
||||||
else
|
|
||||||
./armory/to2root ${toFile} $TIMEWINDOW
|
./armory/to2root ${toFile} $TIMEWINDOW
|
||||||
fi
|
|
||||||
echo -e "$RED>>> `date` >>>>>>>>>>>>>>>>>>>>>>> Build Events finsihed.$NC"
|
echo -e "$RED>>> `date` >>>>>>>>>>>>>>>>>>>>>>> Build Events finsihed.$NC"
|
||||||
else
|
else
|
||||||
echo -e "${rootFile} is up-to-date."
|
echo -e "${rootFile} is up-to-date."
|
||||||
|
@ -120,10 +120,10 @@ if [ $Method -eq 1 ]; then
|
||||||
echo -e "$YELLOW skipped by user $NC"
|
echo -e "$YELLOW skipped by user $NC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${isBuildEvents} -le -1 ]; then
|
if [ ${isBuildEvents} -le -1 ] || [ ${isBuildEvents} -gt 1 ]; then
|
||||||
echo -e "$YELLOW forced by user $NC"
|
echo -e "$YELLOW forced by user $NC"
|
||||||
if [ ${isBuildEvents} -lt 1 ]; then
|
if [ ${isBuildEvents} -lt 1 ] || [ ${isBuildEvents} -gt 1 ]; then
|
||||||
./armory/to2root ${toFile} $TIMEWINDOW ${isBuildEvents}
|
./armory/to2root ${toFile} $TIMEWINDOW ${isBuildEvents} ${rootFile}
|
||||||
else
|
else
|
||||||
./armory/to2root ${toFile} $TIMEWINDOW
|
./armory/to2root ${toFile} $TIMEWINDOW
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user