| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 # Download the newest version of Closure Compiler, build it and put into Chrome | 6 # Download the newest version of Closure Compiler, build it and put into Chrome |
| 7 # source tree. Also update externs/chrome_extensions.js. | 7 # source tree. Also update externs/chrome_extensions.js. |
| 8 # | 8 # |
| 9 # TODO(dbeam): we don't really need to build the compiler any more. We used to | 9 # TODO(dbeam): we don't really need to build the compiler any more. We used to |
| 10 # need to because we built a custom runner. We could probably just curl | 10 # need to because we built a custom runner. We could probably just curl |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 exit 0 | 57 exit 0 |
| 58 else | 58 else |
| 59 head_range=$(cat <<EOT | 59 head_range=$(cat <<EOT |
| 60 Change log: | 60 Change log: |
| 61 https://github.com/google/closure-compiler/compare/${old_head}...${new_head} | 61 https://github.com/google/closure-compiler/compare/${old_head}...${new_head} |
| 62 EOT | 62 EOT |
| 63 ) | 63 ) |
| 64 fi | 64 fi |
| 65 | 65 |
| 66 echo "Building Closure Compiler" | 66 echo "Building Closure Compiler" |
| 67 mvn install -DskipTests=true --projects com.google.javascript:closure-compiler | 67 mvn clean install -DskipTests=true --projects com.google.javascript:closure-comp
iler,com.google.javascript:closure-compiler-externs |
| 68 | 68 |
| 69 if [[ "$?" -ne 0 ]]; then | 69 if [[ "$?" -ne 0 ]]; then |
| 70 echo "Failed to build jar, copying nothing" >&2 | 70 echo "Failed to build jar, copying nothing" >&2 |
| 71 cleanup | 71 cleanup |
| 72 exit 1 | 72 exit 1 |
| 73 fi | 73 fi |
| 74 | 74 |
| 75 # TODO(dbeam): the Maven-built jar seems a little bigger than the ant version. | 75 # TODO(dbeam): the Maven-built jar seems a little bigger than the ant version. |
| 76 cp target/closure-compiler-1.0-SNAPSHOT.jar "${SCRIPT_DIR}/compiler/compiler.jar
" | 76 cp target/closure-compiler-1.0-SNAPSHOT.jar "${SCRIPT_DIR}/compiler/compiler.jar
" |
| 77 | 77 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 echo "${head_range}" | 135 echo "${head_range}" |
| 136 if [[ ! -z "${extensions_range}" ]]; then echo "${extensions_range}"; fi | 136 if [[ ! -z "${extensions_range}" ]]; then echo "${extensions_range}"; fi |
| 137 if [[ ! -z "${polymer_range}" ]]; then echo "${polymer_range}"; fi | 137 if [[ ! -z "${polymer_range}" ]]; then echo "${polymer_range}"; fi |
| 138 echo | 138 echo |
| 139 echo "TBR=" | 139 echo "TBR=" |
| 140 echo "BUG='" | 140 echo "BUG='" |
| 141 echo | 141 echo |
| 142 echo "git cl upload" | 142 echo "git cl upload" |
| 143 | 143 |
| 144 cleanup | 144 cleanup |
| OLD | NEW |