From 476fbdc159a38543b9d4a1edad54302ada08d351 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 19 Oct 2009 19:01:24 +0000 Subject: xpidl up and running, build script updated git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@283 119bf307-c92d-0410-89bd-8f53e6181181 --- build.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'build.py') diff --git a/build.py b/build.py index 8be53f6..d38a0fb 100644 --- a/build.py +++ b/build.py @@ -1,10 +1,17 @@ import os, os.path, zipfile +os.chdir(r'components\interfaces') +for f in os.listdir('.'): + print f + if f.startswith('rdI') and f.endswith('.idl'): + os.system(r'xpidl -m typelib -e ..\%s %s' % (f[:-3] + 'xpt',f)) +os.chdir(r'..\..') + xpi = zipfile.ZipFile('redirector-2.0.xpi','w') for (root, folders, files) in os.walk('.'): if not '.svn' in root: for f in files: - if not f.endswith(('.xpi', '.bat', '.py')): + if f.lower().endswith(('.rdf', '.manifest', '.js', '.xpt', '.png', '.css', '.dtd', '.properties', '.xul', '.html')): xpi.write(os.path.join(root[2:],f)) xpi.close() -- cgit v1.2.3