aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2017-09-12 14:46:35 -0700
committerGravatar GitHub <noreply@github.com>2017-09-12 14:46:35 -0700
commita06e5fdfb791d65946fe5f6123a3d7dc9f264912 (patch)
treea511a428c3cea5141378dcad7a9335c72a35f185 /tools
parent02a76f1bd03f266f84846d59d5cc78e636b9daef (diff)
parent40c346ced94ecdb5a5d818d160f86e1be1c77046 (diff)
Merge pull request #12516 from nicolasnoble/buildgen-bubble-break
Adding --base to generate_projects.py
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildgen/generate_projects.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/buildgen/generate_projects.py b/tools/buildgen/generate_projects.py
index f885b26697..559ea1624b 100755
--- a/tools/buildgen/generate_projects.py
+++ b/tools/buildgen/generate_projects.py
@@ -34,6 +34,7 @@ argp.add_argument('build_files', nargs='+', default=[])
argp.add_argument('--templates', nargs='+', default=[])
argp.add_argument('--output_merged', default=None, type=str)
argp.add_argument('--jobs', '-j', default=multiprocessing.cpu_count(), type=int)
+argp.add_argument('--base', default='.', type=str)
args = argp.parse_args()
json = args.build_files
@@ -69,7 +70,7 @@ jobs = []
for template in reversed(sorted(templates)):
root, f = os.path.split(template)
if os.path.splitext(f)[1] == '.template':
- out_dir = '.' + root[len('templates'):]
+ out_dir = args.base + root[len('templates'):]
out = out_dir + '/' + os.path.splitext(f)[0]
if not os.path.exists(out_dir):
os.makedirs(out_dir)