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
function symcp { | |
SRC=$1 | |
DST=$2 | |
mkdir -p "$DST" | |
for f in $(ls "$SRC"); do | |
echo "Symlinking $SRC/$f -> $DST/$f ..."; | |
ln -sfn "$SRC/$f" "$DST/$f" | |
done; | |
} |
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/bash -e | |
urldecode() { | |
: "${*//+/ }" | |
echo -e "${_//%/\\x}" | |
} | |
LATEST_GRAAL_URL=$(curl -s "https://api.github.com/repos/graalvm/graalvm-ce-dev-builds/releases" | \ | |
grep -Po "['\"]browser_download_url['\"]\s*:\s*['\"]\K(.*)(?=['\"])" | \ | |
grep -m1 "graalvm-ce-java11-linux-amd64-.*dev.tar.gz") |
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
#!/usr/bin/python3 | |
import os, sys | |
import platform | |
import subprocess | |
import shutil | |
from argparse import ArgumentParser, REMAINDER | |
my_env = os.environ.copy() | |
current_os = platform.system().lower() | |
version = "python-1.0.5" |
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/bash | |
set -e | |
urldecode() { : "${*//+/ }"; echo -e "${_//%/\\x}"; } | |
mkdir -p arm | |
pushd arm | |
LATEST_GRAAL_URL=$(curl -s "https://api.github.com/repos/graalvm/graalvm-ce-dev-builds/releases" \ |
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/bash | |
# Usage: | |
# ./fsl symbol_to_find | |
for f in *.a *.so*; do | |
search=$(nm -a $f 2>/dev/null | grep "$1") | |
if [ ! -z "$search" ] | |
then |
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/bash | |
set -e | |
FREETYPE_VER="2.9" | |
if [ ! -d "toolchain" ]; then | |
$ANDROID_NDK/build/tools/make-standalone-toolchain.sh --arch=arm64 --platform=android-21 --install-dir=$(pwd)/toolchain | |
fi | |
export TOOLCHAIN=$(pwd)/toolchain |
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/bash | |
set -e | |
mkdir -p Android | |
pushd Android | |
if [ ! -d "tools" ]; then | |
wget -nc https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip | |
unzip -q sdk-tools-linux-4333796.zip | |
fi |
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
LINKY_LAYOUT=*.jar | |
DYNAMIC_IMPORTS=/substratevm,/tools,/sulong,/graal-js,graalpython,truffleruby | |
DISABLE_INSTALLABLES=true | |
FORCE_BASH_LAUNCHERS=true | |
EXCLUDE_COMPONENTS=nju,nic,LibGraal | |
SKIP_LIBRARIES=polyglot |
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
JAVA8_HOME=/data/graalBuilds/build/graalvm-ce-complete-java8-20.0.0-dev | |
JAVA8_HOME=/data/graalBuilds/build/graalvm-toolchain-only-bash-java8-20.0.0-dev | |
JAVA11_HOME=/data/graalBuilds/build/graalvm-ce-complete-java11-20.0.0-dev | |
JAVA11_HOME=/data/graalBuilds/build/graalvm-toolchain-only-bash-java11-20.0.0-dev | |
GRAALVM_HOME="$JAVA11_HOME" | |
ANDROID_SDK_ROOT="/data/Android" | |
ANDROID_SDK="$ANDROID_SDK_ROOT" |
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/bash | |
(( EUID )) && printf "You need to be root.\nRun script with ' sudo $0 '\n" && exit 1 | |
[[ -z "${JAVA8_HOME}" ]] && printf "JAVA8_HOME environment variable missing.\nCheck if java8 is installed.\n" && exit 1 | |
mkdir -p /data/Android | |
pushd /data/Android | |
if [ ! -d "tools" ]; then |
NewerOlder