Run bin/fetch-gn as a gclient hook.
authorMike Klein <mtklein@chromium.org>
Fri, 9 Dec 2016 16:31:28 +0000 (11:31 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Fri, 9 Dec 2016 17:06:21 +0000 (17:06 +0000)
Seems like the bots don't run hooks.  That's okay, even ideal.
They'll keep getting GN via recipes.

DOCS_PREVIEW= https://skia.org/?cl=5725

Change-Id: I000bad3390dddaeb4548972f29c96b8b3288ea6c
Reviewed-on: https://skia-review.googlesource.com/5725
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Eric Boren <borenet@google.com>
DEPS
site/user/build.md

diff --git a/DEPS b/DEPS
index 802105d..7256fd0 100644 (file)
--- a/DEPS
+++ b/DEPS
@@ -45,3 +45,10 @@ deps = {
 }
 
 recursedeps = [ "common" ]
+
+hooks = []
+
+import os
+import sys
+if os.path.exists('bin/fetch-gn'):
+  hooks.append({ 'action': [sys.executable, 'bin/fetch-gn'] })
index 86aa51b..e5ef3d4 100644 (file)
@@ -14,10 +14,6 @@ them.
 Quickstart
 ----------
 
-After gclient sync, run `fetch-gn` to make sure you have GN.
-
-    gclient sync && python bin/fetch-gn
-
 Run GN to generate your build files.
 
     gn gen out/Static --args='is_official_build=true'