Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: slave/skia_slave_scripts/utils/gclient_utils.py

Issue 344183004: Use new common utils where possible. (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """This module contains utilities for managing gclient checkouts.""" 6 """This module contains utilities for managing gclient checkouts."""
7 7
8 8
9 from common import find_depot_tools 9 from common import find_depot_tools
10 10
11 from git_utils import GIT 11 from py.utils.git_utils import GIT
12 import misc 12 from py.utils import shell_utils
13 from py.utils import misc
13 import os 14 import os
14 import shell_utils
15 15
16 16
17 WHICH = 'where' if os.name == 'nt' else 'which' 17 WHICH = 'where' if os.name == 'nt' else 'which'
18 SKIA_TRUNK = 'skia' 18 SKIA_TRUNK = 'skia'
19 19
20 20
21 # TODO(borenet): There are a number of Git commands in this file. They should 21 # TODO(borenet): There are a number of Git commands in this file. They should
22 # probably be added to git_utils. 22 # probably be added to git_utils.
23 23
24 24
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 gyp_generators: optional string; which GYP_GENERATORS to use. 205 gyp_generators: optional string; which GYP_GENERATORS to use.
206 """ 206 """
207 if gyp_defines: 207 if gyp_defines:
208 os.environ['GYP_DEFINES'] = gyp_defines 208 os.environ['GYP_DEFINES'] = gyp_defines
209 print 'GYP_DEFINES="%s"' % os.environ['GYP_DEFINES'] 209 print 'GYP_DEFINES="%s"' % os.environ['GYP_DEFINES']
210 if gyp_generators: 210 if gyp_generators:
211 os.environ['GYP_GENERATORS'] = gyp_generators 211 os.environ['GYP_GENERATORS'] = gyp_generators
212 print 'GYP_GENERATORS="%s"' % os.environ['GYP_GENERATORS'] 212 print 'GYP_GENERATORS="%s"' % os.environ['GYP_GENERATORS']
213 213
214 _RunCmd(['runhooks']) 214 _RunCmd(['runhooks'])
OLDNEW
« no previous file with comments | « slave/skia_slave_scripts/utils/force_update_checkout.py ('k') | slave/skia_slave_scripts/utils/git_utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698