| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 path = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" | 117 path = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" |
| 118 "tools/testrunner") | 118 "tools/testrunner") |
| 119 _Cmd("svn checkout --force %s %s" % (path, testrunner_dir)) | 119 _Cmd("svn checkout --force %s %s" % (path, testrunner_dir)) |
| 120 | 120 |
| 121 # Update this very script. | 121 # Update this very script. |
| 122 path = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" | 122 path = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" |
| 123 "tools/test-server.py") | 123 "tools/test-server.py") |
| 124 scriptname = os.path.abspath(sys.argv[0]) | 124 scriptname = os.path.abspath(sys.argv[0]) |
| 125 _Cmd("svn cat %s > %s" % (path, scriptname)) | 125 _Cmd("svn cat %s > %s" % (path, scriptname)) |
| 126 | 126 |
| 127 # The testcfg.py files currently need to be able to import the old test.py |
| 128 # script, so we temporarily need to make that available. |
| 129 # TODO(jkummerow): Remove this when removing test.py. |
| 130 for filename in ("test.py", "utils.py"): |
| 131 url = ("http://v8.googlecode.com/svn/branches/bleeding_edge/" |
| 132 "tools/%s" % filename) |
| 133 filepath = os.path.join(os.path.dirname(scriptname), filename) |
| 134 _Cmd("svn cat %s > %s" % (url, filepath)) |
| 135 |
| 127 # Check out or update V8. | 136 # Check out or update V8. |
| 128 v8_dir = os.path.join(ROOT, "v8") | 137 v8_dir = os.path.join(ROOT, "v8") |
| 129 if os.path.exists(v8_dir): | 138 if os.path.exists(v8_dir): |
| 130 _Cmd("cd %s; git fetch" % v8_dir) | 139 _Cmd("cd %s; git fetch" % v8_dir) |
| 131 else: | 140 else: |
| 132 _Cmd("git clone git://github.com/v8/v8.git %s" % v8_dir) | 141 _Cmd("git clone git://github.com/v8/v8.git %s" % v8_dir) |
| 133 | 142 |
| 134 print("Finished.") | 143 print("Finished.") |
| 135 | 144 |
| 136 | 145 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 print("Added certificate %s to trusted certificates." % response) | 215 print("Added certificate %s to trusted certificates." % response) |
| 207 else: | 216 else: |
| 208 print("Unknown command") | 217 print("Unknown command") |
| 209 _PrintUsage() | 218 _PrintUsage() |
| 210 sys.exit(2) | 219 sys.exit(2) |
| 211 else: | 220 else: |
| 212 print("Unknown command") | 221 print("Unknown command") |
| 213 _PrintUsage() | 222 _PrintUsage() |
| 214 sys.exit(2) | 223 sys.exit(2) |
| 215 sys.exit(0) | 224 sys.exit(0) |
| OLD | NEW |