2016-02-19 14:41:16 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# Copyright 2016 the V8 project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
import os
|
2016-10-20 10:29:08 +00:00
|
|
|
import sys
|
2016-02-19 14:41:16 +00:00
|
|
|
import tarfile
|
2016-07-22 15:25:06 +00:00
|
|
|
from itertools import chain
|
2016-02-19 14:41:16 +00:00
|
|
|
|
|
|
|
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
|
2017-02-28 14:43:15 +00:00
|
|
|
for root, dirs, files in chain(os.walk("data"), os.walk("harness")):
|
2016-02-19 14:41:16 +00:00
|
|
|
dirs[:] = [d for d in dirs if not d.endswith('.git')]
|
|
|
|
for name in files:
|
|
|
|
# These names are for gyp, which expects slashes on all platforms.
|
2016-10-20 10:29:08 +00:00
|
|
|
pathname = '/'.join(root.split(os.sep) + [name])
|
|
|
|
# For gyp, quote the name in case it includes spaces
|
|
|
|
if len(sys.argv) > 1 and sys.argv[1] == '--quoted':
|
|
|
|
pathname = '"' + pathname + '"'
|
2017-03-13 14:33:07 +00:00
|
|
|
# Temporary hack until we upgrade to gn swarming:
|
|
|
|
# gyp doesn't handle files containing $ in the name very well, so we just
|
|
|
|
# exclude them from the 'sources' list and hope that other changes cause
|
|
|
|
# the archive to be rebuilt.
|
|
|
|
if '$' in pathname: continue
|
2016-10-20 10:29:08 +00:00
|
|
|
print(pathname)
|