| OLD | NEW | 
|    1 #!/usr/bin/env python |    1 #!/usr/bin/env python | 
|    2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |    2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|    3 # Use of this source code is governed by a BSD-style license that can be |    3 # Use of this source code is governed by a BSD-style license that can be | 
|    4 # found in the LICENSE file. |    4 # found in the LICENSE file. | 
|    5  |    5  | 
|    6 """Windows can't run .sh files, so this is a Python implementation of |    6 """Windows can't run .sh files, so this is a Python implementation of | 
|    7 update.sh. This script should replace update.sh on all platforms eventually.""" |    7 update.sh. This script should replace update.sh on all platforms eventually.""" | 
|    8  |    8  | 
|    9 import argparse |    9 import argparse | 
|   10 import contextlib |   10 import contextlib | 
| (...skipping 10 matching lines...) Expand all  Loading... | 
|   21 import time |   21 import time | 
|   22 import urllib2 |   22 import urllib2 | 
|   23 import zipfile |   23 import zipfile | 
|   24  |   24  | 
|   25 # Do NOT CHANGE this if you don't know what you're doing -- see |   25 # Do NOT CHANGE this if you don't know what you're doing -- see | 
|   26 # https://code.google.com/p/chromium/wiki/UpdatingClang |   26 # https://code.google.com/p/chromium/wiki/UpdatingClang | 
|   27 # Reverting problematic clang rolls is safe, though. |   27 # Reverting problematic clang rolls is safe, though. | 
|   28 # Note: this revision is only used for Windows. Other platforms use update.sh. |   28 # Note: this revision is only used for Windows. Other platforms use update.sh. | 
|   29 # TODO(thakis): Use the same revision on Windows and non-Windows. |   29 # TODO(thakis): Use the same revision on Windows and non-Windows. | 
|   30 # TODO(thakis): Remove update.sh, use update.py everywhere. |   30 # TODO(thakis): Remove update.sh, use update.py everywhere. | 
|   31 LLVM_WIN_REVISION = '242130' |   31 LLVM_WIN_REVISION = '239674' | 
|   32  |   32  | 
|   33 use_head_revision = 'LLVM_FORCE_HEAD_REVISION' in os.environ |   33 use_head_revision = 'LLVM_FORCE_HEAD_REVISION' in os.environ | 
|   34 if use_head_revision: |   34 if use_head_revision: | 
|   35   LLVM_WIN_REVISION = 'HEAD' |   35   LLVM_WIN_REVISION = 'HEAD' | 
|   36  |   36  | 
|   37 # This is incremented when pushing a new build of Clang at the same revision. |   37 # This is incremented when pushing a new build of Clang at the same revision. | 
|   38 CLANG_SUB_REVISION=1 |   38 CLANG_SUB_REVISION=1 | 
|   39  |   39  | 
|   40 PACKAGE_VERSION = "%s-%s" % (LLVM_WIN_REVISION, CLANG_SUB_REVISION) |   40 PACKAGE_VERSION = "%s-%s" % (LLVM_WIN_REVISION, CLANG_SUB_REVISION) | 
|   41  |   41  | 
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  752  |  752  | 
|  753     args.force_local_build = True |  753     args.force_local_build = True | 
|  754     # Skip local patches when using HEAD: they probably don't apply anymore. |  754     # Skip local patches when using HEAD: they probably don't apply anymore. | 
|  755     args.with_patches = False |  755     args.with_patches = False | 
|  756  |  756  | 
|  757   return UpdateClang(args) |  757   return UpdateClang(args) | 
|  758  |  758  | 
|  759  |  759  | 
|  760 if __name__ == '__main__': |  760 if __name__ == '__main__': | 
|  761   sys.exit(main()) |  761   sys.exit(main()) | 
| OLD | NEW |