[conf] rename from *.xml.example to *_example.xml

- select_conf: personal conf file is conf_personal.xml
This commit is contained in:
Felix Ruess
2013-09-13 23:56:14 +02:00
parent b2b114c689
commit 80a007f155
9 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@@ -40,6 +40,7 @@
# /conf/
/conf/conf.xml
/conf/conf.xml.20*
/conf/conf_personal.xml.20*
/conf/control_panel.xml
/conf/%gconf.xml
/conf/maps_data/*

View File

@@ -113,7 +113,7 @@ update_google_version:
conf: conf/conf.xml conf/control_panel.xml conf/maps.xml
conf/%.xml :conf/%.xml.example
conf/%.xml :conf/%_example.xml
[ -L $@ ] || [ -f $@ ] || cp $< $@
@@ -294,7 +294,7 @@ ab_clean:
replace_current_conf_xml:
test conf/conf.xml && mv conf/conf.xml conf/conf.xml.backup.$(BUILD_DATETIME)
cp conf/tests_conf.xml conf/conf.xml
cp conf/conf_tests.xml conf/conf.xml
restore_conf_xml:
test conf/conf.xml.backup.$(BUILD_DATETIME) && mv conf/conf.xml.backup.$(BUILD_DATETIME) conf/conf.xml

View File

@@ -52,8 +52,8 @@ class ConfChooser:
conf_files = []
pattern = "*conf.xml*"
backup_pattern = "conf.xml.*2[0-9][0-9][0-9]-[01][0-9]-[0-3][0-9]_*"
pattern = "conf[._-]*xml*"
backup_pattern = "conf[._-]*xml.20[0-9][0-9]-[01][0-9]-[0-3][0-9]_*"
excludes = ["%gconf.xml"]
for path, subdirs, files in os.walk(self.conf_dir):
@@ -147,7 +147,7 @@ class ConfChooser:
self.paparazzi_home = os.getenv("PAPARAZZI_HOME", os.path.dirname(os.path.abspath(__file__)))
self.conf_dir = os.path.join(self.paparazzi_home, "conf")
self.conf_xml = os.path.join(self.conf_dir, "conf.xml")
self.conf_personal_name = "conf.xml.personal"
self.conf_personal_name = "conf_personal.xml"
self.conf_personal = os.path.join(self.conf_dir, self.conf_personal_name)
self.exclude_backups = True

View File

@@ -8,7 +8,7 @@ use Data::Dumper;
use Config;
$|++;
my $examples = XMLin("$ENV{'PAPARAZZI_SRC'}/conf/tests_conf.xml");
my $examples = XMLin("$ENV{'PAPARAZZI_SRC'}/conf/conf_tests.xml");
use Data::Dumper;