Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/Tools/scripts/build_parameters.sh
Views: 1798
#!/usr/bin/env bash12set -e3set -x45if [ "x$BUILDLOGS" = "x" ]; then6BUILDLOGS="../buildlogs"7fi8PARAMS_DIR="$BUILDLOGS/Parameters"910# work from either APM directory or above11[ -d ArduPlane ] || cd APM1213/bin/mkdir -p "$PARAMS_DIR"1415generate_parameters() {16VEHICLE="$1"1718# generate Parameters.html, Parameters.rst etc etc:19./Tools/autotest/param_metadata/param_parse.py --vehicle $VEHICLE2021# stash some of the results away:22VEHICLE_PARAMS_DIR="$PARAMS_DIR/$VEHICLE"23mkdir -p "$VEHICLE_PARAMS_DIR"24/bin/cp Parameters.html *.pdef.xml "$VEHICLE_PARAMS_DIR/"25gzip -9 <"$VEHICLE_PARAMS_DIR"/apm.pdef.xml >"$VEHICLE_PARAMS_DIR"/apm.pdef.xml.gz.new && mv "$VEHICLE_PARAMS_DIR"/apm.pdef.xml.gz.new "$VEHICLE_PARAMS_DIR"/apm.pdef.xml.gz26xz -e <"$VEHICLE_PARAMS_DIR"/apm.pdef.xml >"$VEHICLE_PARAMS_DIR"/apm.pdef.xml.xz.new && mv "$VEHICLE_PARAMS_DIR"/apm.pdef.xml.xz.new "$VEHICLE_PARAMS_DIR"/apm.pdef.xml.xz27if [ -e "Parameters.rst" ]; then28/bin/cp Parameters.rst "$VEHICLE_PARAMS_DIR/"29fi30if [ -e "ParametersLatex.rst" ]; then31/bin/cp ParametersLatex.rst "$VEHICLE_PARAMS_DIR/"32fi33F="apm.pdef.json"34if [ -e "$F" ]; then35/bin/cp "$F" "$VEHICLE_PARAMS_DIR/"36pushd "$VEHICLE_PARAMS_DIR"37xz -e <"$F" >"$F.xz.new" && mv "$F.xz.new" "$F.xz"38popd39fi40}4142generate_parameters ArduPlane4344generate_parameters ArduCopter4546generate_parameters Rover4748generate_parameters ArduSub4950generate_parameters AntennaTracker5152generate_parameters AP_Periph5354generate_parameters Blimp555657