OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2012 The Swarming Authors. All rights reserved. | 2 # Copyright 2012 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed under the Apache License, Version 2.0 that | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
4 # can be found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import os | 6 import os |
7 import subprocess | 7 import subprocess |
8 import sys | 8 import sys |
9 | 9 |
10 | 10 |
11 def child(): | 11 def child(): |
12 """When the gyp argument is not specified, the command is started from | 12 """When the gyp argument is not specified, the command is started from |
13 --root-dir directory. | 13 --root-dir directory. |
14 """ | 14 """ |
(...skipping 26 matching lines...) Expand all Loading... |
41 def main(): | 41 def main(): |
42 if sys.argv[1] == '--child': | 42 if sys.argv[1] == '--child': |
43 return child() | 43 return child() |
44 if sys.argv[1] == '--child-gyp': | 44 if sys.argv[1] == '--child-gyp': |
45 return child_gyp() | 45 return child_gyp() |
46 return 1 | 46 return 1 |
47 | 47 |
48 | 48 |
49 if __name__ == '__main__': | 49 if __name__ == '__main__': |
50 sys.exit(main()) | 50 sys.exit(main()) |
OLD | NEW |