check_submodules recursevely go over all submodules (#6272)

* Recursevely go over all submodules
Using git submodules command going over all the submodules and not only the ones on the whitelist
and fixed white spaces
This commit is contained in:
matanhavi
2017-01-08 01:55:45 +02:00
committed by Daniel Agar
parent c9956e25b4
commit 7df3b4ae71
+7 -19
View File
@@ -32,8 +32,7 @@ then
if [ "$user_cmd" == "y" ] if [ "$user_cmd" == "y" ]
then then
echo "Continuing build with manually overridden submodule.." echo "Continuing build with manually overridden submodule.."
else elif [ "$user_cmd" == "u" ]
if [ "$user_cmd" == "u" ]
then then
git submodule sync --recursive git submodule sync --recursive
git submodule update --init --recursive git submodule update --init --recursive
@@ -43,7 +42,6 @@ then
exit 1 exit 1
fi fi
fi fi
fi
else else
echo "REINITIALIZING GIT SUBMODULES" echo "REINITIALIZING GIT SUBMODULES"
echo "no git repo found in $1/.git" echo "no git repo found in $1/.git"
@@ -74,21 +72,11 @@ else
exit 0 exit 0
} }
check_git_submodule NuttX submodules=$(git submodule status --recursive | awk '{ print $2 }')
check_git_submodule Tools/gencpp for i in $submodules;
check_git_submodule Tools/genmsg do
check_git_submodule Tools/jMAVSim check_git_submodule $i
check_git_submodule Tools/sitl_gazebo done
check_git_submodule cmake/cmake_hexagon
check_git_submodule mavlink/include/mavlink/v1.0
check_git_submodule mavlink/include/mavlink/v2.0
check_git_submodule src/lib/DriverFramework
check_git_submodule src/lib/DriverFramework/cmake/cmake_hexagon
check_git_submodule src/lib/DriverFramework/dspal
check_git_submodule src/lib/ecl
check_git_submodule src/lib/matrix
check_git_submodule src/modules/uavcan/libuavcan
check_git_submodule unittests/googletest
check_git_submodule src/drivers/gps/devices
fi fi
exit 0 exit 0