mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: build_parameters.sh: compress parameter xml files
This commit is contained in:
parent
9e148f245b
commit
3e708b9b29
@ -20,6 +20,8 @@ generate_parameters() {
|
||||
VEHICLE_PARAMS_DIR="$PARAMS_DIR/$VEHICLE"
|
||||
mkdir -p "$VEHICLE_PARAMS_DIR"
|
||||
/bin/cp Parameters.wiki Parameters.html *.pdef.xml "$VEHICLE_PARAMS_DIR/"
|
||||
gzip -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.gz
|
||||
xz -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.xz
|
||||
if [ -e "Parameters.rst" ]; then
|
||||
/bin/cp Parameters.rst "$VEHICLE_PARAMS_DIR/"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user