blob: 6f8bada473f270dcacbe0ca6dd8758e07a03edd7 [file] [log] [blame]
Søren Gjesse96b37252021-08-09 16:08:05 +02001#!/bin/bash
2#
3# Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file
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.
6
7set -e
8set -x
9
10echo "Update this script manually before using"
11exit -1
12
13# Download JDK from https://jdk.java.net/X/ (X = version) into ~/Downloads
14# Create directory third_party/openjdk/jdk-X
15# cd into third_party/openjdk/jdk-X
16# Prepare README.google
17# Update JDK_VERSION below
18
Søren Gjesse2b19a032021-11-12 10:45:04 +010019# Now run script with fingers crossed!
Søren Gjesse96b37252021-08-09 16:08:05 +020020
Søren Gjesse2b19a032021-11-12 10:45:04 +010021JDK_VERSION=17
Søren Gjesse96b37252021-08-09 16:08:05 +020022
23tar xf ~/Downloads/openjdk-${JDK_VERSION}_linux-x64_bin.tar.gz
24cp -rL jdk-${JDK_VERSION} linux
25cp README.google linux
26upload_to_google_storage.py -a --bucket r8-deps linux
27rm -rf jdk-${JDK_VERSION}
28rm -rf linux
29rm linux.tar.gz
30
Søren Gjesse2b19a032021-11-12 10:45:04 +010031tar xf ~/Downloads/openjdk-${JDK_VERSION}_macos-x64_bin.tar.gz
Søren Gjesse96b37252021-08-09 16:08:05 +020032cp -rL jdk-${JDK_VERSION}.jdk osx
33cp README.google osx
34upload_to_google_storage.py -a --bucket r8-deps osx
35rm -rf osx
36rm -rf jdk-${JDK_VERSION}.jdk
37rm osx.tar.gz
38
39unzip ~/Downloads/openjdk-${JDK_VERSION}_windows-x64_bin.zip
40cp -rL jdk-${JDK_VERSION} windows
41cp README.google windows
42upload_to_google_storage.py -a --bucket r8-deps windows
43rm -rf windows
44rm -rf jdk-${JDK_VERSION}
45rm windows.tar.gz
Søren Gjesse2b19a032021-11-12 10:45:04 +010046
47git add *.sha1
48
49echo "Update additional files, see https://r8-review.googlesource.com/c/r8/+/61909"