1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#!/bin/sh
rm -rf src/*/.deps src/.deps tests/.deps
case `uname` in
Darwin) # linux is preferred
echo "The repo has the stats from linux" # expect minor differences
CC=gcc-mp-6 ./configure --enable-gcov=gcov-mp-6 --disable-shared --enable-unsafe \
--enable-norm-compat && \
gmake -s -j4 all gcov ;;
Linux)
./configure --enable-gcov --disable-shared --enable-unsafe --enable-norm-compat && \
make -s -j4 gcov ;;
esac
# now all done via make gcov
# fixup and post-process .gcov
#perl -pi -e's{Source:(\w+)/}{Source:}' src/*/*.gcov && \
# gcov2perl src/*/*.gcov && \
# cover -no-gcov
|