aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/sync
diff options
context:
space:
mode:
authorGravatar Hal Canary <halcanary@google.com>2016-12-09 15:38:13 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-09 21:15:27 +0000
commita4a338179013b029d6dd55e737b5bd648a9fb68c (patch)
tree92bbbedc12950187e83156b6d1ddd56a7b3e077c /bin/sync
parent0e8fc8b9e6a138cf4a66b421fb824679df717329 (diff)
tools and docs: clean up gyp-specific things
BUG=skia: DOCS_PREVIEW= https://skia.org/?cl=5770 Change-Id: Iadc436a68cbf7ec0d1dd3c019072eb28bf589bb6 Reviewed-on: https://skia-review.googlesource.com/5770 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'bin/sync')
-rwxr-xr-xbin/sync19
1 files changed, 9 insertions, 10 deletions
diff --git a/bin/sync b/bin/sync
index 154acbc300..d95d4a82b7 100755
--- a/bin/sync
+++ b/bin/sync
@@ -68,18 +68,17 @@ if current_deps_hash != deps_hash:
if not os.path.isfile('.gclient'):
with open('.gclient', 'w') as o:
o.write(default_gclient_config)
- for command in [[gclient, 'sync'] + skia_opt_deps,
- ['python', os.path.join('bin', 'fetch-gn')]]:
+ command = [gclient, 'sync'] + skia_opt_deps
+ try:
+ sys.stdout.write('%r\n' % command)
+ subprocess.check_call(command)
+ except:
+ sys.stderr.write('\n%r failed.\n' % command)
try:
- sys.stdout.write('%r\n' % command)
- subprocess.check_call(command)
+ os.remove('.deps_sha1') # Unknown state.
except:
- sys.stderr.write('\n%r failed.\n' % command)
- try:
- os.remove('.deps_sha1') # Unknown state.
- except:
- pass
- exit(1)
+ pass
+ exit(1)
# Only write hash after a successful sync.
with open('.deps_sha1', 'w') as o:
o.write(deps_hash)