UAVCAN as a submodule

This commit is contained in:
Pavel Kirienko
2014-07-08 20:19:17 +04:00
parent 56649bd10a
commit 6814ddccff
5 changed files with 23 additions and 1 deletions
+16
View File
@@ -31,4 +31,20 @@ else
git submodule update;
fi
if [ -d uavcan/libuavcan_drivers ];
then
STATUSRETVAL=$(git status --porcelain | grep -i uavcan)
if [ "$STATUSRETVAL" == "" ]; then
echo "Checked uavcan submodule, correct version found"
else
echo "uavcan sub repo not at correct version. Try 'make updatesubmodules'"
echo "or follow instructions on http://pixhawk.org/dev/git/submodules"
exit 1
fi
else
git submodule init
git submodule update
fi
exit 0