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-05-21 04:00:04 -03:00
|
|
|
./Tools/autotest/param_metadata/param_parse.py > param.out || 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
|
2013-05-27 10:07:38 -03:00
|
|
|
./Tools/scripts/update_wiki.py --url http://plane.ardupilot.com $(cat $HOME/WP_Auth/plane.auth) --post-title='ArduPlane 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
|
|
|
|
./Tools/scripts/update_wiki.py --url http://copter.ardupilot.com $(cat $HOME/WP_Auth/copter.auth) --post-title='ArduCopter 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
|
|
|
|
./Tools/scripts/update_wiki.py --url http://rover.ardupilot.com $(cat $HOME/WP_Auth/rover.auth) --post-title='APMrover2 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
|
2013-05-27 10:06:18 -03:00
|
|
|
}
|