OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 """Meta checkout manager supporting both Subversion and GIT. | 6 """Meta checkout manager supporting both Subversion and GIT. |
7 | 7 |
8 Files | 8 Files |
9 .gclient : Current client configuration, written by 'config' command. | 9 .gclient : Current client configuration, written by 'config' command. |
10 Format is a Python script defining 'solutions', a list whose | 10 Format is a Python script defining 'solutions', a list whose |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 DEPS_OS_CHOICES = { | 786 DEPS_OS_CHOICES = { |
787 "win32": "win", | 787 "win32": "win", |
788 "win": "win", | 788 "win": "win", |
789 "cygwin": "win", | 789 "cygwin": "win", |
790 "darwin": "mac", | 790 "darwin": "mac", |
791 "mac": "mac", | 791 "mac": "mac", |
792 "unix": "unix", | 792 "unix": "unix", |
793 "linux": "unix", | 793 "linux": "unix", |
794 "linux2": "unix", | 794 "linux2": "unix", |
795 "linux3": "unix", | 795 "linux3": "unix", |
| 796 "android": "android", |
796 } | 797 } |
797 | 798 |
798 DEFAULT_CLIENT_FILE_TEXT = ("""\ | 799 DEFAULT_CLIENT_FILE_TEXT = ("""\ |
799 solutions = [ | 800 solutions = [ |
800 { "name" : "%(solution_name)s", | 801 { "name" : "%(solution_name)s", |
801 "url" : "%(solution_url)s", | 802 "url" : "%(solution_url)s", |
802 "deps_file" : "%(deps_file)s", | 803 "deps_file" : "%(deps_file)s", |
803 "managed" : %(managed)s, | 804 "managed" : %(managed)s, |
804 "custom_deps" : { | 805 "custom_deps" : { |
805 }, | 806 }, |
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 except (gclient_utils.Error, subprocess2.CalledProcessError), e: | 1601 except (gclient_utils.Error, subprocess2.CalledProcessError), e: |
1601 print >> sys.stderr, 'Error: %s' % str(e) | 1602 print >> sys.stderr, 'Error: %s' % str(e) |
1602 return 1 | 1603 return 1 |
1603 | 1604 |
1604 | 1605 |
1605 if '__main__' == __name__: | 1606 if '__main__' == __name__: |
1606 fix_encoding.fix_encoding() | 1607 fix_encoding.fix_encoding() |
1607 sys.exit(Main(sys.argv[1:])) | 1608 sys.exit(Main(sys.argv[1:])) |
1608 | 1609 |
1609 # vim: ts=2:sw=2:tw=80:et: | 1610 # vim: ts=2:sw=2:tw=80:et: |
OLD | NEW |