Skip to content

Commit

Permalink
[conf] rename from *.xml.example to *_example.xml
Browse files Browse the repository at this point in the history
- select_conf: personal conf file is conf_personal.xml
  • Loading branch information
flixr committed Sep 13, 2013
1 parent b2b114c commit 80a007f
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $< $@


Expand Down Expand Up @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions select_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def find_conf_files(self):

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):
Expand Down Expand Up @@ -147,7 +147,7 @@ def __init__(self):
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
Expand Down
2 changes: 1 addition & 1 deletion tests/examples/01_compile_all_test_targets.t
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 80a007f

Please sign in to comment.