mk: cope with recursive submodules in all modules

This commit is contained in:
Andrew Tridgell 2016-04-13 11:00:45 +10:00
parent ccddd07d27
commit a658a78364

View File

@ -30,11 +30,15 @@ done
git submodule status --recursive
exit 1
}
(cd modules/uavcan && git submodule init) || {
echo "init of uavcan failed"
git submodule status --recursive
exit 1
}
for m in $MODULE_LIST; do
[ -f modules/$m/.gitmodules ] && {
(cd modules/$m && git submodule init) || {
echo "init of $m failed"
git submodule status --recursive
exit 1
}
}
done
git submodule update --recursive || {
echo "git submodule update failed"
git submodule status --recursive