OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 import glob | 7 import glob |
8 import optparse | 8 import optparse |
9 import os | 9 import os |
10 import re | 10 import re |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 print 'Script pathname not known, giving up.' | 206 print 'Script pathname not known, giving up.' |
207 return 1 | 207 return 1 |
208 | 208 |
209 scriptdir = os.path.abspath(os.path.dirname(sys.argv[0])) | 209 scriptdir = os.path.abspath(os.path.dirname(sys.argv[0])) |
210 editorpath = os.path.abspath(os.path.join(scriptdir, '..')) | 210 editorpath = os.path.abspath(os.path.join(scriptdir, '..')) |
211 thirdpartypath = os.path.abspath(os.path.join(scriptdir, '..', '..', | 211 thirdpartypath = os.path.abspath(os.path.join(scriptdir, '..', '..', |
212 'third_party')) | 212 'third_party')) |
213 toolspath = os.path.abspath(os.path.join(scriptdir, '..', '..', | 213 toolspath = os.path.abspath(os.path.join(scriptdir, '..', '..', |
214 'tools')) | 214 'tools')) |
215 dartpath = os.path.abspath(os.path.join(scriptdir, '..', '..')) | 215 dartpath = os.path.abspath(os.path.join(scriptdir, '..', '..')) |
216 antpath = os.path.join(thirdpartypath, 'apache_ant', 'v1_7_1') | 216 antpath = os.path.join(thirdpartypath, 'apache_ant', '1.8.4') |
217 bzip2libpath = os.path.join(thirdpartypath, 'bzip2') | 217 bzip2libpath = os.path.join(thirdpartypath, 'bzip2') |
218 buildpath = os.path.join(editorpath, 'tools', 'features', | 218 buildpath = os.path.join(editorpath, 'tools', 'features', |
219 'com.google.dart.tools.deploy.feature_releng') | 219 'com.google.dart.tools.deploy.feature_releng') |
220 utils = GetUtils(toolspath) | 220 utils = GetUtils(toolspath) |
221 buildos = utils.GuessOS() | 221 buildos = utils.GuessOS() |
222 | 222 |
223 BUILD_OS = utils.GuessOS() | 223 BUILD_OS = utils.GuessOS() |
224 DART_PATH = dartpath | 224 DART_PATH = dartpath |
225 TOOLS_PATH = toolspath | 225 TOOLS_PATH = toolspath |
226 | 226 |
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1058 """delete the given file - do not re-throw any exceptions that occur""" | 1058 """delete the given file - do not re-throw any exceptions that occur""" |
1059 if os.path.exists(f): | 1059 if os.path.exists(f): |
1060 try: | 1060 try: |
1061 os.remove(f) | 1061 os.remove(f) |
1062 except OSError: | 1062 except OSError: |
1063 print 'error deleting %s' % f | 1063 print 'error deleting %s' % f |
1064 | 1064 |
1065 | 1065 |
1066 if __name__ == '__main__': | 1066 if __name__ == '__main__': |
1067 sys.exit(main()) | 1067 sys.exit(main()) |
OLD | NEW |