radare2/sys/clang-analyzer.sh
2013-02-07 19:31:18 +01:00

17 lines
337 B
Bash
Executable File

#!/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
${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