mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
Link instead of copy
This commit is contained in:
parent
19ee6a86eb
commit
4646115f03
1 changed files with 5 additions and 7 deletions
|
@ -28,19 +28,17 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${CPPCHECK}" ]; then
|
if [ -n "${CPPCHECK}" ]; then
|
||||||
if [ -e "${CPPCHECK}" ]; then
|
if [ ! -f "${CPPCHECK}" ]; then
|
||||||
# Copy the existing output
|
command -v cppcheck >/dev/null
|
||||||
BASENAME_CPPCHECK=`basename ${CPPCHECK}`
|
|
||||||
cp ${CPPCHECK} ./${BASENAME_CPPCHECK}
|
|
||||||
else
|
|
||||||
CHECK_CPPCHECK=`command -v cppcheck >/dev/null`
|
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "cppcheck not installed"
|
echo "cppcheck not installed"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
fi
|
||||||
|
|
||||||
|
ln -s ${CPPCHECK} cppcheck.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
make -j${CORES} distclean ${BUILD_TYPE}
|
make -j${CORES} distclean ${BUILD_TYPE}
|
||||||
|
|
Loading…
Reference in a new issue