radare2/sys/clang-analyzer.sh

17 lines
337 B
Bash
Raw Normal View History

#!/bin/sh
MAKE=make
gmake --help >/dev/null 2>&1
[ $? = 0 ] && MAKE=gmake
scan-build echo >/dev/null
[ $? = 0 ] || exit 1
# 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
echo Check ${PWD}/clang-log