You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
354 B

#!/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