summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-12-07 09:38:55 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-12-07 09:38:55 -0500
commit9d43f129d4ad56dded752aa75c4dd2bb5af48b9e (patch)
tree7c0e9dd7ef78eb2b122f383fc9d0c10591e76194 /utils
parent2c30652840889cd2e1c5e15574e93aefdb720fcf (diff)
downloadeib-9d43f129d4ad56dded752aa75c4dd2bb5af48b9e.tar.xz
eib-9d43f129d4ad56dded752aa75c4dd2bb5af48b9e.zip
Fix stuff.
Diffstat (limited to 'utils')
-rwxr-xr-xutils/create_xpi.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/utils/create_xpi.py b/utils/create_xpi.py
index e14cd49..f2ad8a6 100755
--- a/utils/create_xpi.py
+++ b/utils/create_xpi.py
@@ -4,7 +4,7 @@
# Author: Yan Zhu, yan@mit.edu
"""
-Usage: python create_xpi.py -x <exclusions> -n <name of zipped file> <directory>
+Usage: python create_xpi.py -n <name of zipped file> <directory>
"""
import argparse
@@ -14,9 +14,6 @@ import glob
parser = argparse.ArgumentParser(
description="Deterministic XPI file creator.")
-parser.add_argument("-x", type=str, nargs="?",
- dest="exclusions", metavar="File with file pattern exclusions",
- default=".build_exclusions", help="Excluded file patterns.")
parser.add_argument("-n", type=str,
dest="xpiname", help="Name of target XPI file.")
parser.add_argument("directory", type=str,
@@ -24,15 +21,9 @@ parser.add_argument("directory", type=str,
args = parser.parse_args()
-exclusions = []
-with open(args.exclusions) as f:
- for line in f:
- exclusions.extend(glob.glob(line.strip()))
-exclusions = map(lambda x: './'+x, exclusions)
-
compress = zipfile.ZIP_DEFLATED
xpiFile = zipfile.ZipFile(args.xpiname, mode='w', compression=compress)
-xpiFile.write_from_directory(args.directory, exclusions, compress_type=compress)
+xpiFile.write_from_directory(args.directory, [], compress_type=compress)
xpiFile.close()