Created
September 12, 2020 12:34
-
-
Save plexus/b4090c0acd37ba0228f11392d0e108a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# Install JS runtimes for script/test, and set the necessary env vars (so source | |
# this script in your shell). | |
# | |
# Will ignore runtimes for which the env var is already set (so you can point at | |
# your own installation). | |
if [[ -z "$SPIDERMONKEY_HOME" ]] ; then | |
if [[ ! -d "$(pwd)/spidermonkey" ]] ; then | |
wget https://ftp.mozilla.org/pub/firefox/nightly/latest-mozilla-central/jsshell-linux-x86_64.zip | |
unzip jsshell-linux-x86_64.zip -d spidermonkey | |
fi | |
export SPIDERMONKEY_HOME="$(pwd)/spidermonkey" | |
fi | |
if [[ -z "$CHAKRACORE_HOME" ]] ; then | |
if [[ ! -d "$(pwd)/ChakraCoreFiles" ]] ; then | |
wget https://aka.ms/chakracore/cc_linux_x64_1_8_1 -O chakra-core.tar.gz | |
tar xvzf chakra-core.tar.gz | |
fi | |
export CHAKRACORE_HOME="$(pwd)/ChakraCoreFiles/bin" | |
fi | |
if [[ -z "$GRAALVM_HOME" ]] ; then | |
if [[ ! -d "$(pwd)/graalvm-ce-1.0.0-rc12" ]] ; then | |
wget https://github.com/oracle/graal/releases/download/vm-1.0.0-rc12/graalvm-ce-1.0.0-rc12-linux-amd64.tar.gz | |
tar xzf graalvm-ce-1.0.0-rc12-linux-amd64.tar.gz | |
fi | |
export GRAALVM_HOME="$(pwd)/graalvm-ce-1.0.0-rc12/bin" | |
fi | |
# if [[ -x "$JAVA_HOME/bin/jjs" ]]; then | |
# export NASHORN_HOME="$JAVA_HOME/bin" | |
# elif [[ -x "$(which jjs)" ]]; then | |
# export NASHORN_HOME="$(dirname `which jjs`)" | |
# fi | |
set +e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment