mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
test if conf.xml actually exists before trying to move it
This commit is contained in:
committed by
Felix Ruess
parent
77af7a7cd4
commit
b4ef8c20f2
@@ -259,13 +259,11 @@ dist_clean_irreversible: clean
|
||||
ab_clean:
|
||||
find sw/airborne -name '*~' -exec rm -f {} \;
|
||||
|
||||
test_all_example_airframes2: test_all_example_airframes
|
||||
|
||||
test_all_example_airframes: replace_current_conf_xml
|
||||
for ap in `grep name conf/conf.xml.example | sed -e 's/.*name=\"//' | sed -e 's/"//'`; do echo "Making $$ap"; make -C ./ AIRCRAFT=$$ap clean_ac ap.compile || exit 1; done
|
||||
|
||||
replace_current_conf_xml:
|
||||
mv conf/conf.xml conf/conf.xml.backup.`date +%Y%m%d-%H%M%s`
|
||||
test conf/conf.xml || mv conf/conf.xml conf/conf.xml.backup.`date +%Y%m%d-%H%M%s`
|
||||
cp conf/conf.xml.example conf/conf.xml
|
||||
|
||||
commands: paparazzi sw/simulator/launchsitl
|
||||
|
||||
Reference in New Issue
Block a user