| # Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file |
| # for details. All rights reserved. Use of this source code is governed by a |
| # BSD-style license that can be found in the LICENSE file. |
| echo "Update this script manually before using" |
| # Download JDK from https://jdk.java.net/X/ (X = version) into ~/Downloads |
| # Create directory third_party/openjdk/jdk-X |
| # cd into third_party/openjdk/jdk-X |
| # Update JDK_VERSION below |
| # Now run script with fingers crossed! |
| tar xf ~/Downloads/openjdk-${JDK_VERSION}_linux-x64_bin.tar.gz |
| cp -rL jdk-${JDK_VERSION} linux |
| upload_to_google_storage.py -a --bucket r8-deps linux |
| rm -rf jdk-${JDK_VERSION} |
| tar xf ~/Downloads/openjdk-${JDK_VERSION}_macos-x64_bin.tar.gz |
| cp -rL jdk-${JDK_VERSION}.jdk osx |
| upload_to_google_storage.py -a --bucket r8-deps osx |
| rm -rf jdk-${JDK_VERSION}.jdk |
| unzip ~/Downloads/openjdk-${JDK_VERSION}_windows-x64_bin.zip |
| cp -rL jdk-${JDK_VERSION} windows |
| upload_to_google_storage.py -a --bucket r8-deps windows |
| rm -rf jdk-${JDK_VERSION} |
| echo "Update additional files, see https://r8-review.googlesource.com/c/r8/+/61909" |