From b2ceec3c28ddc1787742954369dddca3bf7dce5f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 30 Dec 2011 21:08:50 +0530 Subject: [PATCH] ignore files starting with . too --- tools/build/build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build/build.py b/tools/build/build.py index e87bf29f..c5087c9a 100755 --- a/tools/build/build.py +++ b/tools/build/build.py @@ -92,7 +92,9 @@ def build_oxjs(geo): data[1].append(js_dir + filename) filenames = filenames[0] + filenames[1] for filename in os.listdir(source_path + js_dir): - if not filename in filenames: + if not filename in filenames \ + and not filename.startswith('.') \ + and not filename.endswith('~'): filenames.append(filename) for filename in filenames: js += read_file(source_path + js_dir + filename) + '\n'