[fixes] Refreshes OWNERS and simulate_staging.py
As written, simulate_staging.py didn't work, so I fixed it.
Change-Id: Iac1e3faef194123f3046d9bcfaf7373f41f1285a
diff --git a/OWNERS b/OWNERS
index b84a6f9..9508537 100644
--- a/OWNERS
+++ b/OWNERS
@@ -1,5 +1,4 @@
fmil@google.com
joshuaseaton@google.com
-kpozin@google.com
-shayba@google.com
-viktard@google.com
+neelsa@google.com
+quiche@google.com
diff --git a/simulate_staging.py b/simulate_staging.py
index dbf4d21..efd38c3 100755
--- a/simulate_staging.py
+++ b/simulate_staging.py
@@ -3,7 +3,15 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-"""Copies files from checkout dir to staging dir based on contents.json."""
+"""Copies files from checkout dir to staging dir based on contents.json.
+
+Invoke from the checkout directory (the directory that contains .jiri_root).
+
+Example:
+ ./fontdata/simulate_staging.py $HOME/tmp/staging-dir
+
+Once done, the directory contains the staged files ready for upload.
+"""
import argparse
import json
@@ -19,11 +27,13 @@
parser.add_argument('staging_dir', metavar='staging-dir', type=str)
parser.add_argument('--checkout-dir', type=str, default='.',
help='Path to jiri checkout directory. Defaults to current working directory.')
+ parser.add_argument('--contents-path', type=str, default='fontdata',
+ help='directory path to contents.json, relative to checkout dir')
args = parser.parse_args()
staging_dir = Path(args.staging_dir).resolve()
checkout_dir = Path(args.checkout_dir).resolve()
- contents_path = checkout_dir.joinpath('contents.json')
+ contents_path = checkout_dir.joinpath(args.contents_path, 'contents.json')
with open(contents_path, 'r') as file:
contents = json.load(file)
for bundle in contents: