aboutsummaryrefslogtreecommitdiff
path: root/build.py
blob: 2eff878ef0cc48d5f712748f7c2378dab3379eae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os, os.path, zipfile, sys

xpi = zipfile.ZipFile('redirector-' + raw_input('Version: ') + '.xpi','w')
for (root, folders, files) in os.walk('.'):
	if 'unittest' in root:
		continue
	if not '.svn' in root:
		for f in files:
			if f.lower().endswith(('.rdf', '.manifest', '.js', '.xpt', '.png', '.css', '.dtd', '.properties', '.xul', '.html')):
				xpi.write(os.path.join(root[2:],f))

xpi.close()