added sketch sample, formatting

This commit is contained in:
George Danchev
2011-06-26 20:51:16 +00:00
parent 4ff44f53e4
commit 73106b7331
2 changed files with 67 additions and 4 deletions

View File

@ -17,15 +17,22 @@ E1=`date '+%s'`
# require ^releng_, avoid running (your)self explcitly
for s in `ls | grep ^releng_ | grep -v ${SELF} | sort`; 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'`
set +e
# -rc -clean are shared options amongst the all releng scripts
./${s} -rc -clean 1>>${CLOG1} 2>>${CLOG2}
RET=$?
T2=`date '+%s'`
let TS="${T2}-${T1}"
printf "done. ret: $RET; time: ${TS} sec."
case ${RET} in
0)
printf "done in ${TS} sec. ok."
;;
*)
printf "done in ${TS} sec. FAILED WITH EXIT CODE: $RET;"
;;
esac
set -e
fi
done