Chromium Code Reviews| Index: third_party/closure_compiler/bump_compiler_version |
| diff --git a/third_party/closure_compiler/bump_compiler_version b/third_party/closure_compiler/bump_compiler_version |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..10b3c33b980c58e861b0f436cc48e2e43dca64d8 |
| --- /dev/null |
| +++ b/third_party/closure_compiler/bump_compiler_version |
| @@ -0,0 +1,35 @@ |
| +#!/bin/bash |
| +# Copyright 2014 The Chromium Authors. All rights reserved. |
| +# Use of this source code is governed by a BSD-style license that can be |
| +# found in the LICENSE file. |
| +# |
| +# Download the newest version of Closure Compiler, build it and put into Chrome |
| +# source tree. Also update externs/chrome_extensions.js. |
| +# |
| +# How to update compiler version in Chrome source: |
| +# a) Run this script. |
| +# b) Add third_party/closure_compiler/compiler/compiler.jar and |
| +# third_party/closure_compiler/externs/chrome_extensions.js |
| +# c) Commit. |
| + |
| +readonly SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
|
Dan Beam
2014/09/18 21:26:07
readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURC
Vitaly Pavlenko
2014/09/18 21:49:43
Done.
|
| +readonly TEMP_DIR=$(mktemp -d) |
| + |
| +cd "${TEMP_DIR}" |
| +echo "Cloning Closure Compiler repo" |
| +git clone https://github.com/google/closure-compiler.git |
| + |
| +cd closure-compiler |
| +echo "Building Closure Compiler" |
| +ant jar |
| + |
| +if [[ -e build/compiler.jar ]] ; then |
| + echo "Copying compiler.jar and chrome_extensions.js" |
| + cp build/compiler.jar "${SCRIPT_DIR}/compiler/" |
| + cp contrib/externs/chrome_extensions.js "${SCRIPT_DIR}/externs/" |
| + echo "Done" |
| +else |
| + echo "Failed to build jar, copy nothing" |
|
Dan Beam
2014/09/18 21:26:08
we need to exit with non-zero exit status somehow
Vitaly Pavlenko
2014/09/18 21:49:43
Done.
|
| +fi |
| + |
| +rm -rf "${TEMP_DIR}" |