462360f3db
Add the javascript shell WebKit JavaScriptCore as an optional download in third_party/jsc. This is a CIPD download, and includes an update.sh script to upload a new version of jsc to CIPD and update DEPS. Bug: b/322134579 Change-Id: I94902ccdff3d121e5be51ef6eeab595fc24ad7e3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/348161 Commit-Queue: William Hesse <whesse@google.com> Reviewed-by: Alexander Thomas <athom@google.com>
35 lines
927 B
Bash
Executable File
35 lines
927 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Uploads a new version of the checked in jsc CIPD packages
|
|
# jsc is the JavaScriptCore shell from WebKit.
|
|
#
|
|
# Only the latest builds for the last few days are available
|
|
# for download. They are indexed by build number.
|
|
# This script only downloads the latest build, and uploads
|
|
# it to CIPD with the build number as the version tag.
|
|
# It updates DEPS to download that version of jsc from CIPD.
|
|
set -ex
|
|
|
|
tmpdir=$(mktemp -d)
|
|
cleanup() {
|
|
rm -rf "$tmpdir"
|
|
}
|
|
trap cleanup EXIT HUP INT QUIT TERM PIPE
|
|
pushd "$tmpdir"
|
|
|
|
URL=https://webkitgtk.org/jsc-built-products/x86_64/release
|
|
LATEST=$(curl $URL/LAST-IS)
|
|
VERSION=${LATEST%@main.zip}
|
|
curl $URL/$LATEST --output main.zip
|
|
filename="main.zip"
|
|
unzip -q $filename -d jsc
|
|
cipd create \
|
|
-name dart/third_party/jsc/linux-amd64 \
|
|
-in jsc \
|
|
-install-mode copy \
|
|
-tag version:$VERSION
|
|
rm $filename
|
|
rm -rf jsc
|
|
popd
|
|
|
|
gclient setdep --var="jsc_tag=version:$VERSION"
|