From c596dd0e20dbaab41c1aaf7aca2a513d652bace0 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 30 Dec 2011 15:36:45 +0530 Subject: [PATCH] do not include bzr revert files --- tools/build/build.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/build/build.py b/tools/build/build.py index 427dfd13..55f661e7 100755 --- a/tools/build/build.py +++ b/tools/build/build.py @@ -32,7 +32,7 @@ def build_oxjs(geo): for theme in ['classic', 'modern']: path = source_path + 'Ox.UI/themes/' + theme + '/svg/' for filename in os.listdir(path): - if not filename[0] in '._': + if not filename[0] in '._' and not filename.endswith('~'): key = theme + '/' + filename[:-4] imageURLs[key] = os.path.join(path, filename).replace(source_path, '') data = re.sub('\n\s+', '', read_file(path + filename)) @@ -46,7 +46,8 @@ def build_oxjs(geo): ui_files = {'build': [], 'dev': []} for path, dirnames, filenames in os.walk(source_path): for filename in filenames: - if not '_' in path and not filename[0] in '._'\ + if not '_' in path and not filename[0] in '._' \ + and not filename.endswith('~') \ and (geo or not '/Ox.Geo/' in path): # write copies in build path source = os.path.join(path, filename) @@ -109,6 +110,7 @@ def build_oxjs(geo): # svgs are loaded as URLs or dataURLs # browser images appear before load if path != root and not '_' in path and not filename[0] in '._'\ + and not filename.endswith('~') \ and not 'jquery' in filename\ and not ('/themes/' in path and filename.endswith('.css'))\ and not filename.endswith('.svg')\ @@ -161,4 +163,4 @@ def write_path(file): if __name__ == '__main__': geo = False if sys.argv[-1] == '-nogeo' else True - build_oxjs(geo) \ No newline at end of file + build_oxjs(geo)