OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 the V8 project authors. All rights reserved. | 2 # Copyright 2013 the V8 project authors. All rights reserved. |
3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
5 # met: | 5 # met: |
6 # | 6 # |
7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
10 # copyright notice, this list of conditions and the following | 10 # copyright notice, this list of conditions and the following |
(...skipping 27 matching lines...) Expand all Loading... |
38 import subprocess | 38 import subprocess |
39 import sys | 39 import sys |
40 import textwrap | 40 import textwrap |
41 import time | 41 import time |
42 import urllib | 42 import urllib |
43 import urllib2 | 43 import urllib2 |
44 | 44 |
45 from git_recipes import GitRecipesMixin | 45 from git_recipes import GitRecipesMixin |
46 from git_recipes import GitFailedException | 46 from git_recipes import GitFailedException |
47 | 47 |
| 48 CHANGELOG_FILE = "ChangeLog" |
48 VERSION_FILE = os.path.join("src", "version.cc") | 49 VERSION_FILE = os.path.join("src", "version.cc") |
49 | 50 |
50 # V8 base directory. | 51 # V8 base directory. |
51 V8_BASE = os.path.dirname( | 52 V8_BASE = os.path.dirname( |
52 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | 53 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
53 | 54 |
54 | 55 |
55 def TextToFile(text, file_name): | 56 def TextToFile(text, file_name): |
56 with open(file_name, "w") as f: | 57 with open(file_name, "w") as f: |
57 f.write(text) | 58 f.write(text) |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 for (number, step_class) in enumerate([BootstrapStep] + step_classes): | 943 for (number, step_class) in enumerate([BootstrapStep] + step_classes): |
943 steps.append(MakeStep(step_class, number, self._state, self._config, | 944 steps.append(MakeStep(step_class, number, self._state, self._config, |
944 options, self._side_effect_handler)) | 945 options, self._side_effect_handler)) |
945 for step in steps[options.step:]: | 946 for step in steps[options.step:]: |
946 if step.Run(): | 947 if step.Run(): |
947 return 0 | 948 return 0 |
948 return 0 | 949 return 0 |
949 | 950 |
950 def Run(self, args=None): | 951 def Run(self, args=None): |
951 return self.RunSteps(self._Steps(), args) | 952 return self.RunSteps(self._Steps(), args) |
OLD | NEW |