31 lines
450 B
Plaintext
31 lines
450 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
SELF=`echo $0|sed -e 's/\.\///'`
|
||
|
CLOG1=$0.1.log
|
||
|
CLOG2=$0.2.log
|
||
|
|
||
|
> {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
|
||
|
./${s} -rc -clean 1>>${CLOG1} 2>>${CLOG2}
|
||
|
RET=$?
|
||
|
printf "Done (return code: $RET)"
|
||
|
set -e
|
||
|
fi
|
||
|
done
|
||
|
printf "\n"
|
||
|
exit 0
|
||
|
}
|
||
|
|
||
|
#
|
||
|
main
|