Skip to content
Snippets Groups Projects
Commit 19c78f58 authored by Daniel Agar's avatar Daniel Agar
Browse files

make check_format check version

-run Tools/fix_code_style.sh with no argument to check astyle version
parent 9ad38cf3
No related branches found
No related tags found
No related merge requests found
......@@ -203,9 +203,10 @@ run_sitl_ros: sitl_deprecation
# --------------------------------------------------------------------
uavcan_firmware:
@(rm -rf vectorcontrol && git clone https://github.com/thiemar/vectorcontrol && cd vectorcontrol && BOARD=s2740vc_1_0 make --no-print-directory -s && BOARD=px4esc_1_6 make --no-print-directory -s && ../Tools/uavcan_copy.sh)
@(rm -rf vectorcontrol && git clone -q https://github.com/thiemar/vectorcontrol && cd vectorcontrol && BOARD=s2740vc_1_0 make --silent --no-print-directory && BOARD=px4esc_1_6 make --silent --no-print-directory && ../Tools/uavcan_copy.sh)
check_format:
@./Tools/fix_code_style.sh
@./Tools/check_code_style.sh
check: px4fmu-v1_default px4fmu-v2_default px4fmu-v4_default mindpx-v2_default px4-stm32f4discovery_default check_format tests
......
......@@ -9,6 +9,10 @@ if [ "$ASTYLE_VER" != "$ASTYLE_VER_REQUIRED" ]; then
exit 1
fi
if [[ $# -eq 0 ]] ; then
exit 0
fi
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
astyle \
--options=$DIR/astylerc \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment