| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The LUCI Authors. All rights reserved. | 2 # Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed under the Apache License, Version 2.0 | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
| 4 # that can be found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
| 5 | 5 |
| 6 """Regenerates vendored components and derivative files from external sources. | 6 """Regenerates vendored components and derivative files from external sources. |
| 7 | 7 |
| 8 This is a utililty script that is intended to be run on a Linux-based system. | 8 This is a utililty script that is intended to be run on a Linux-based system. |
| 9 Other operating systems may work, but are not supported. | 9 Other operating systems may work, but are not supported. |
| 10 | 10 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 _VendoredGitRepo( | 258 _VendoredGitRepo( |
| 259 'recipe_engine/third_party/client-py/libs', | 259 'recipe_engine/third_party/client-py/libs', |
| 260 repo='https://github.com/luci/client-py', | 260 repo='https://github.com/luci/client-py', |
| 261 ref='origin/master', | 261 ref='origin/master', |
| 262 subpath='libs'), | 262 subpath='libs'), |
| 263 | 263 |
| 264 # All actions that rely on "protoc" must happen after this one. | 264 # All actions that rely on "protoc" must happen after this one. |
| 265 _VendoredPythonProtobuf( | 265 _VendoredPythonProtobuf( |
| 266 'recipe_engine/third_party/google', | 266 'recipe_engine/third_party/google', |
| 267 repo='https://github.com/google/protobuf', | 267 repo='https://github.com/google/protobuf', |
| 268 ref='3.0.0-beta-3'), | 268 ref='v3.0.0'), |
| 269 | 269 |
| 270 _VendoredLuciGoProto( | 270 _VendoredLuciGoProto( |
| 271 'recipe_engine/third_party', | 271 'recipe_engine/third_party', |
| 272 relsrc='common/proto/milo', | 272 relsrc='common/proto/milo', |
| 273 ref='origin/master'), | 273 ref='origin/master'), |
| 274 | 274 |
| 275 _RegenerateLocalProtobufs(), | 275 _RegenerateLocalProtobufs(), |
| 276 ) | 276 ) |
| 277 | 277 |
| 278 | 278 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 290 vdir = os.path.join(td, 'vendor_%d' % (i,)) | 290 vdir = os.path.join(td, 'vendor_%d' % (i,)) |
| 291 os.makedirs(vdir) | 291 os.makedirs(vdir) |
| 292 | 292 |
| 293 # Execute the vendor script. | 293 # Execute the vendor script. |
| 294 act.run(c, vdir) | 294 act.run(c, vdir) |
| 295 | 295 |
| 296 | 296 |
| 297 if __name__ == '__main__': | 297 if __name__ == '__main__': |
| 298 logging.basicConfig(level=logging.DEBUG) | 298 logging.basicConfig(level=logging.DEBUG) |
| 299 sys.exit(main(sys.argv[1:])) | 299 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |