2011-12-06 07:31:31 +08:00
|
|
|
#!/bin/sh
|
|
|
|
MAKE=make
|
|
|
|
gmake --help >/dev/null 2>&1
|
|
|
|
[ $? = 0 ] && MAKE=gmake
|
2012-08-31 00:06:18 +08:00
|
|
|
scan-build echo >/dev/null
|
|
|
|
[ $? = 0 ] || exit 1
|
2011-12-06 07:31:31 +08:00
|
|
|
|
|
|
|
# find root
|
|
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
|
|
|
|
|
|
# build
|
2013-02-08 02:31:18 +08:00
|
|
|
${MAKE} mrproper > /dev/null 2>&1
|
|
|
|
rm -rf scan-log
|
|
|
|
scan-build ./configure --prefix=/usr && \
|
|
|
|
scan-build -o ${PWD}/clang-log ${MAKE} -j 4
|
2011-12-06 07:31:31 +08:00
|
|
|
echo Check ${PWD}/clang-log
|