| OLD | NEW |
| 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 Loading... |
| 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']) |
| OLD | NEW |