2 changed files with 28 additions and 12 deletions
@ -1,18 +1,34 @@
@@ -1,18 +1,34 @@
|
||||
#!/bin/sh |
||||
STATUSRETVAL=$(git status --porcelain | grep -i "M mavlink/include/mavlink/v1.0") |
||||
if [ "$STATUSRETVAL" == "" ]; then |
||||
echo "checked mavlink submodule, correct version found" |
||||
|
||||
if [ -d NuttX/nuttx ]; |
||||
then |
||||
STATUSRETVAL=$(git status --porcelain | grep -i "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'" |
||||
echo "or follow instructions on http://pixhawk.org/dev/git/submodules" |
||||
exit 1 |
||||
fi |
||||
else |
||||
echo "mavlink sub repo not at correct version. Try 'git submodule update'" |
||||
exit 1 |
||||
git submodule init; |
||||
git submodule update; |
||||
fi |
||||
|
||||
STATUSRETVAL=$(git status --porcelain | grep -i "M NuttX") |
||||
if [ "$STATUSRETVAL" == "" ]; then |
||||
echo "checked NuttX submodule, correct version found" |
||||
|
||||
if [ -d mavlink/include/mavlink/v1.0 ]; |
||||
then |
||||
STATUSRETVAL=$(git status --porcelain | grep -i "NuttX") |
||||
if [ "$STATUSRETVAL" == "" ]; then |
||||
echo "Checked NuttX submodule, correct version found" |
||||
else |
||||
echo "NuttX sub repo not at correct version. Try 'git submodule update'" |
||||
echo "or follow instructions on http://pixhawk.org/dev/git/submodules" |
||||
exit 1 |
||||
fi |
||||
else |
||||
echo "NuttX sub repo not at correct version. Try 'git submodule update'" |
||||
exit 1 |
||||
git submodule init; |
||||
git submodule update; |
||||
fi |
||||
|
||||
exit 0 |
||||
|
Loading…
Reference in new issue