mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 21:53:33 +08:00
UAVCAN as a submodule
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user