2013-03-18 01:15:50 -03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2013-05-29 23:19:50 -03:00
|
|
|
# work from either APM directory or above
|
|
|
|
[ -d ArduPlane ] || cd APM
|
|
|
|
|
2013-09-11 21:01:30 -03:00
|
|
|
./Tools/autotest/param_metadata/param_parse.py > param.out || {
|
|
|
|
echo "Parameter parsing failed"
|
|
|
|
exit 1
|
|
|
|
}
|
2013-03-18 01:15:50 -03:00
|
|
|
/bin/mkdir -p ../buildlogs/Parameters
|
2013-05-27 21:25:21 -03:00
|
|
|
/bin/cp Parameters.wiki Parameters.html *.pdef.xml ../buildlogs/Parameters/
|
2013-05-27 10:06:18 -03:00
|
|
|
|
|
|
|
[ -d $HOME/WP_Auth ] && {
|
|
|
|
# now upload to WordPress
|
|
|
|
./Tools/autotest/param_metadata/param_parse.py --vehicle ArduPlane
|
2015-05-08 03:38:17 -03:00
|
|
|
./Tools/scripts/update_wiki.py --url http://plane.ardupilot.com $(cat $HOME/WP_Auth/plane.auth) --post-title='Plane Parameters' Parameters.html
|
2013-05-27 21:25:21 -03:00
|
|
|
mkdir -p ../buildlogs/Parameters/ArduPlane
|
|
|
|
/bin/cp Parameters.wiki Parameters.html *.pdef.xml ../buildlogs/Parameters/ArduPlane
|
2013-05-27 10:06:18 -03:00
|
|
|
|
|
|
|
./Tools/autotest/param_metadata/param_parse.py --vehicle ArduCopter
|
2015-05-08 03:38:17 -03:00
|
|
|
./Tools/scripts/update_wiki.py --url http://copter.ardupilot.com $(cat $HOME/WP_Auth/copter.auth) --post-title='Copter Parameters' Parameters.html
|
2013-05-27 21:25:21 -03:00
|
|
|
mkdir -p ../buildlogs/Parameters/ArduCopter
|
|
|
|
/bin/cp Parameters.wiki Parameters.html *.pdef.xml ../buildlogs/Parameters/ArduCopter
|
2013-05-27 10:06:18 -03:00
|
|
|
|
|
|
|
./Tools/autotest/param_metadata/param_parse.py --vehicle APMrover2
|
2015-05-08 03:38:17 -03:00
|
|
|
./Tools/scripts/update_wiki.py --url http://rover.ardupilot.com $(cat $HOME/WP_Auth/rover.auth) --post-title='Rover Parameters' Parameters.html
|
2013-05-27 21:25:21 -03:00
|
|
|
mkdir -p ../buildlogs/Parameters/APMrover2
|
|
|
|
/bin/cp Parameters.wiki Parameters.html *.pdef.xml ../buildlogs/Parameters/APMrover2
|
2014-08-14 17:42:07 -03:00
|
|
|
|
|
|
|
./Tools/autotest/param_metadata/param_parse.py --vehicle AntennaTracker
|
|
|
|
#./Tools/scripts/update_wiki.py --url http://rover.ardupilot.com $(cat $HOME/WP_Auth/rover.auth) --post-title='APMrover2 Parameters' Parameters.html
|
|
|
|
mkdir -p ../buildlogs/Parameters/AntennaTracker
|
|
|
|
/bin/cp Parameters.wiki Parameters.html *.pdef.xml ../buildlogs/Parameters/AntennaTracker
|
2013-05-27 10:06:18 -03:00
|
|
|
}
|