radare2/sys/clang-analyzer.sh
pancake 83afc157a1 * Bump release 0.9 -- codename 'furoner'
* Fix perms in sys/clang-analyzer.sh
* Enhace the sys/farm/html generator
2011-12-06 02:29:37 +01:00

18 lines
351 B
Bash
Executable File

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