libisoburn/releng/run_all

45 lines
785 B
Plaintext
Raw Normal View History

2011-06-26 14:06:38 +00:00
#!/bin/bash
set -e
SELF=`echo $0|sed -e 's/\.\///'`
CLOG1=log.$SELF.1
CLOG2=log.$SELF.2
2011-06-26 14:06:38 +00:00
2011-06-26 14:07:54 +00:00
> ${CLOG1}
> ${CLOG2}
2011-06-26 14:06:38 +00:00
main() {
2011-06-26 15:16:10 +00:00
#
DSTART=`date --utc`
printf "\n$0: Started at ${DSTART}"
E1=`date '+%s'`
2011-06-26 14:06:38 +00:00
# avoid running (your)self
for s in `ls | grep -v ${SELF}`; do
if [ -x ${s} ]; then
set +e
2011-06-26 15:16:10 +00:00
printf "\n$0: Running ${s}..."
2011-06-26 14:06:38 +00:00
# -rc -clean are shared options amongst the all releng scripts
2011-06-26 14:23:13 +00:00
T1=`date '+%s'`
2011-06-26 14:06:38 +00:00
./${s} -rc -clean 1>>${CLOG1} 2>>${CLOG2}
RET=$?
2011-06-26 14:23:13 +00:00
T2=`date '+%s'`
let TS="${T2}-${T1}"
2011-06-26 15:16:10 +00:00
printf "done. ret: $RET; time: ${TS} sec."
2011-06-26 14:06:38 +00:00
set -e
fi
done
2011-06-26 15:16:10 +00:00
DEND=`date --utc`
printf "\n$0: Finished at ${DEND}"
E2=`date '+%s'`
let ES="${E2}-${E1}"
printf "\n$0: Total time elapsed ${ES} sec."
printf "\n$0: *** Inspect ${CLOG1} and ${CLOG2} ***\n\n"
2011-06-26 14:06:38 +00:00
exit 0
}
#
main