libisoburn/releng/run_all
2011-06-26 14:54:49 +00:00

34 lines
588 B
Bash
Executable File

#!/bin/bash
set -e
SELF=`echo $0|sed -e 's/\.\///'`
CLOG1=log.$SELF.1
CLOG2=log.$SELF.2
> ${CLOG1}
> ${CLOG2}
main() {
# avoid running (your)self
for s in `ls | grep -v ${SELF}`; do
if [ -x ${s} ]; then
set +e
printf "\n$0: running ${s}..."
# -rc -clean are shared options amongst the all releng scripts
T1=`date '+%s'`
./${s} -rc -clean 1>>${CLOG1} 2>>${CLOG2}
RET=$?
T2=`date '+%s'`
let TS="${T2}-${T1}"
printf "done. return code: $RET; time spent: ${TS}."
set -e
fi
done
printf "\n\n\t$0: *** inspect ${CLOG1} and ${CLOG2} ***\n\n"
exit 0
}
#
main