diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-09-24 10:36:02 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2014-09-25 15:11:35 -0400 |
commit | c9b18a3824573e503d99c6b0f14a1a7d2049b50e (patch) | |
tree | 957d04cfd553dae68e794743ed033bbc5c34fd95 /buildscripts/make_archive.py | |
parent | e671a2c31f6b555254e4ad8265f66578f8c805aa (diff) | |
download | mongo-c9b18a3824573e503d99c6b0f14a1a7d2049b50e.tar.gz |
SERVER-15400: Create Windows Enterprise Zip File with vcredist and dependent dlls
Diffstat (limited to 'buildscripts/make_archive.py')
-rwxr-xr-x | buildscripts/make_archive.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/buildscripts/make_archive.py b/buildscripts/make_archive.py index 840b134e717..5df995b41e9 100755 --- a/buildscripts/make_archive.py +++ b/buildscripts/make_archive.py @@ -29,12 +29,23 @@ For a detailed usage example, see src/SConscript.client or src/mongo/SConscript. import optparse import os import sys +import shlex import shutil import zipfile from subprocess import (Popen, PIPE, STDOUT) def main(argv): - opts = parse_options(argv[1:]) + args = [] + for arg in argv[1:]: + if arg.startswith("@"): + file_name = arg[1:] + f_handle = open(file_name, "r") + args.extend(s1.strip('"') for s1 in shlex.split(f_handle.readline(), posix=False)) + f_handle.close() + else: + args.append(arg) + + opts = parse_options(args) if opts.archive_format in ('tar', 'tgz'): make_tar_archive(opts) elif opts.archive_format in ('zip'): @@ -170,7 +181,9 @@ def get_preferred_filename(input_filename, transformations): returns the substituted string ''' for match, replace in transformations: - if input_filename.startswith(match): + match_lower = match.lower() + input_filename_lower = input_filename.lower() + if input_filename_lower.startswith(match_lower): return replace + input_filename[len(match):] return input_filename |