ardupilot/libraries/GCS_MAVLink/update

15 lines
354 B
Bash
Executable File

#!/bin/bash
if [[ $# != 1 ]]
then
echo "usage: $0 version"
exit
fi
MAVLINK_VERSION=$1
rm -rf VERSION mavlink* include lib share *.zip
wget http://github.com/downloads/mavlink/mavlink/mavlink-${MAVLINK_VERSION}.zip
unzip mavlink-${MAVLINK_VERSION}.zip
mv mavlink-${MAVLINK_VERSION}/* .
rm -rf mavlink* share lib
echo $MAVLINK_VERSION > VERSION