* Add clang-analyzer sys script and call it from the farm

This commit is contained in:
pancake 2011-12-06 00:31:31 +01:00
parent f908b15fb5
commit c87ee35bfb
2 changed files with 19 additions and 0 deletions

17
sys/clang-analyzer.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/sh
MAKE=make
gmake --help >/dev/null 2>&1
[ $? = 0 ] && MAKE=gmake
scan-build echo >/dev/null 2>&1
[ $? = 0 ] && MAKE=gmake
# find root
cd `dirname $PWD/$0` ; cd ..
# build
if [ -f config-user.mk ]; then
${MAKE} mrproper > /dev/null 2>&1
fi
./configure --prefix=/usr && \
scan-build -o sys/clang-log ${MAKE} -j 4
echo Check ${PWD}/clang-log

View File

@ -1,4 +1,6 @@
all:
sh run.sh
sh html.sh
mkdir -p farm/log/clang
#cd .. ; sh clang-analyzer.sh && mv ../clang-log/* farm/log/clang
sh push.sh