diff options
Diffstat (limited to 'Tools/check_submodules.sh')
-rwxr-xr-x | Tools/check_submodules.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Tools/check_submodules.sh b/Tools/check_submodules.sh index 8fd9a8f00..0c03396e7 100755 --- a/Tools/check_submodules.sh +++ b/Tools/check_submodules.sh @@ -1,5 +1,11 @@ #!/bin/sh +[ -n "$GIT_SUBMODULES_ARE_EVIL" ] && { + # GIT_SUBMODULES_ARE_EVIL is set, meaning user doesn't want submodules + echo "Skipping submodules. NUTTX_SRC is set to $NUTTX_SRC" + exit 0 +} + if [ -d NuttX/nuttx ]; then STATUSRETVAL=$(git submodule summary | grep -A20 -i "NuttX" | grep "<") @@ -8,8 +14,10 @@ if [ -d NuttX/nuttx ]; else echo "" echo "" - echo "NuttX sub repo not at correct version. Try 'git submodule update'" - echo "or follow instructions on http://pixhawk.org/dev/git/submodules" + echo " NuttX sub repo not at correct version. Try 'git submodule update'" + echo " or follow instructions on http://pixhawk.org/dev/git/submodules" + echo "" + echo " DO NOT FORGET TO RUN 'make distclean && make archives' AFTER EACH NUTTX UPDATE!" echo "" echo "" echo "New commits required:" |