| 642 | MESSAGE = "Bootstrapping checkout and state." |
| 643 | |
| 644 | def RunStep(self): |
| 645 | # Reserve state entry for json output. |
| 646 | self['json_output'] = {} |
| 647 | |
| 648 | if os.path.realpath(self.default_cwd) == os.path.realpath(V8_BASE): |
| 649 | self.Die("Can't use v8 checkout with calling script as work checkout.") |
| 650 | # Directory containing the working v8 checkout. |
| 651 | if not os.path.exists(self._options.work_dir): |
| 652 | os.makedirs(self._options.work_dir) |
| 653 | if not os.path.exists(self.default_cwd): |
| 654 | self.Git("cl creds-check", pipe=False, cwd=self._options.work_dir) |
| 655 | self.Git("clone https://chromium.googlesource.com/v8/v8", |
| 656 | cwd=self._options.work_dir) |
| 657 | |
| 658 | |
| 659 | class UploadStep(Step): |