mirror of https://gitlab.com/cppit/libclangmm
3 changed files with 10 additions and 6 deletions
@ -1,8 +1,14 @@
|
||||
#!/bin/bash |
||||
|
||||
if [ "${cmake_command}" == "" ]; then |
||||
cmake_command="scan-build cmake .." |
||||
fi |
||||
|
||||
if [ "${make_command}" == "" ]; then |
||||
make_command="make -j 2" |
||||
make_command="scan-build --status-bugs make -j 2" |
||||
fi |
||||
|
||||
cd libclangmm/build || exit |
||||
exec sh -c "scan-build -o ../html_${distribution} --status-bugs ${make_command}" |
||||
cd libclangmm || echo "Can't cd into libclangmm" |
||||
mkdir -p build && cd build || echo "Error making build directory" |
||||
sh -c "${cmake_command}" || echo "Cmake configuration failed" |
||||
exec sh -c "${make_command}" |
||||
|
||||
Loading…
Reference in new issue