summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
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()