Skip to content

Commit

Permalink
super cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Dec 22, 2023
1 parent 7f2a3d2 commit 82ed122
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions worker/scripts/cppcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CPPCHECKS="warning,style,performance,portability,unusedFunction"
XML_FILE="/tmp/mediasoup-worker-cppcheck.xml"
HTML_REPORT_DIR="/tmp/mediasoup-worker-cppcheck-report"

echo ">>> [INFO] running cppcheck ..."
echo ">>> [INFO] running cppcheck..."
cppcheck --std=c++11 --enable=${CPPCHECKS} -v --quiet --report-progress --inline-suppr --error-exitcode=69 -I include src --xml-version=2 2> $XML_FILE

# If exit code is 1 it means that some cppcheck option is wrong, so abort.
Expand All @@ -40,12 +40,12 @@ fi

echo ">>> [INFO] cppcheck XML report file generated in ${XML_FILE}"

echo ">>> [INFO] running cppcheck-htmlreport ..."
echo ">>> [INFO] running cppcheck-htmlreport..."
cppcheck-htmlreport --title="mediasoup-worker" --file=${XML_FILE} --report-dir=${HTML_REPORT_DIR} --source-dir=. > /dev/null

echo ">>> [INFO] cppcheck HTML report generated in ${HTML_REPORT_DIR}"

if type "open" &> /dev/null; then
echo ">>> [INFO] opening HTML report ..."
echo ">>> [INFO] opening HTML report..."
open ${HTML_REPORT_DIR}/index.html
fi
4 changes: 2 additions & 2 deletions worker/scripts/flint++.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ if ! type "flint++" &> /dev/null; then
exit 1
fi

echo ">>> [INFO] running flint++ in src/ folder ..."
echo ">>> [INFO] running flint++ in src/ folder..."
flint++ --recursive --verbose src/

echo
echo ">>> [INFO] running flint++ in include/ folder ..."
echo ">>> [INFO] running flint++ in include/ folder..."
flint++ --recursive --verbose include/
10 changes: 5 additions & 5 deletions worker/scripts/get-dep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ function get_dep()
GIT_TAG="$2"
DEST="$3"

echo ">>> [INFO] getting dep '${DEP}' ..."
echo ">>> [INFO] getting dep '${DEP}'..."

if [ -d "${DEST}" ] ; then
echo ">>> [INFO] deleting ${DEST} ..."
echo ">>> [INFO] deleting ${DEST}..."
git rm -rf --ignore-unmatch ${DEST} > /dev/null
rm -rf ${DEST}
fi

echo ">>> [INFO] cloning ${GIT_REPO} ..."
echo ">>> [INFO] cloning ${GIT_REPO}..."
git clone ${GIT_REPO} ${DEST}

cd ${DEST}

echo ">>> [INFO] setting '${GIT_TAG}' git tag ..."
echo ">>> [INFO] setting '${GIT_TAG}' git tag..."
git checkout --quiet ${GIT_TAG}
set -e

echo ">>> [INFO] adding dep source code to the repository ..."
echo ">>> [INFO] adding dep source code to the repository..."
rm -rf .git
git add .

Expand Down

0 comments on commit 82ed122

Please sign in to comment.