add mavlink submodule check script

The script checks if the mavlink submodule is up to date
This commit is contained in:
Thomas Gubler 2014-07-07 15:25:32 +02:00
parent e103f5f8cb
commit 68dbf0057a
1 changed files with 10 additions and 0 deletions

10
Tools/check_submodules.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
STATUSRETVAL=$(git status --porcelain | grep -i "M mavlink/include/mavlink/v1.0")
if [ "$STATUSRETVAL" == "" ]; then
echo "checked mavlink submodule, correct version found"
else
echo "mavlink sub repo not at correct version. Try 'git submodule update'"
exit 1
fi
exit 0