run-checks
资源名称:gateway-1.2.1 [点击查看]
上传用户:gzpyjq
上传日期:2013-01-31
资源大小:1852k
文件大小:0k
源码类别:
手机WAP编程
开发平台:
WINDOWS
- #!/bin/sh
- #
- # This script runs all the checks given in the command line. See the
- # README for more info.
- #
- rm -f check.log
- for prog in "$@"
- do
- echo -n "Check: $prog..."
- if $prog 2> check.log.new && test ! -s check.log.new
- then
- echo " OK."
- else
- echo " FAILURE!"
- echo "Check: $prog" >> check.log
- cat check.log.new >> check.log
- fi
- rm check.log.new
- done
- if test -s check.log
- then
- echo At least one check failed, see `check.log'.
- else
- echo All checks OK.
- rm -f check.log
- fi