Skip to content

Commit

Permalink
Link instead of copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Angus committed Aug 27, 2014
1 parent 19ee6a8 commit 4646115
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions jenkins-ci-build.sh
Expand Up @@ -28,19 +28,17 @@ else
fi

if [ -n "${CPPCHECK}" ]; then
if [ -e "${CPPCHECK}" ]; then
# Copy the existing output
BASENAME_CPPCHECK=`basename ${CPPCHECK}`
cp ${CPPCHECK} ./${BASENAME_CPPCHECK}
else
CHECK_CPPCHECK=`command -v cppcheck >/dev/null`
if [ ! -f "${CPPCHECK}" ]; then
command -v cppcheck >/dev/null
if [ "$?" != "0" ]; then
echo "cppcheck not installed"
exit 1
fi

cppcheck --enable=all --max-configs=1 --xml --xml-version=2 ./code 2> ${CPPCHECK}
cppcheck --enable=all --max-configs=1 --xml --xml-version=2 code 2> ${CPPCHECK}
fi

ln -s ${CPPCHECK} cppcheck.xml
fi

make -j${CORES} distclean ${BUILD_TYPE}
Expand Down

0 comments on commit 4646115

Please sign in to comment.