| Server IP : www.new.bangkokfinder.com / Your IP : 172.69.176.43 Web Server : nginx/1.20.1 System : Linux new 4.15.0-159-generic #167-Ubuntu SMP Tue Sep 21 08:55:05 UTC 2021 x86_64 User : bangkokfinder ( 1000) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/usr/src/libheif/scripts/ |
Upload File : |
#!/bin/sh
set -e
VERSION=$1
TARGET=$2
if [ -z "$VERSION" ] || [ -z "$TARGET" ]; then
echo "USAGE: $0 <sdk-version> <target-folder>"
exit 1
fi
LIBSTDC_BASE=http://de.archive.ubuntu.com/ubuntu/pool/main/g/gcc-5
EMSDK_DOWNLOAD=https://github.com/emscripten-core/emsdk.git
CODENAME=$(/usr/bin/lsb_release --codename --short)
if [ "$CODENAME" = "trusty" ] && [ ! -e "/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21" ]; then
CONTENTS=$(curl --location $LIBSTDC_BASE)
LIBSTDC_VERSION=$(echo $CONTENTS | sed 's|.*libstdc++6_\([^_]*\)_amd64\.deb.*|\1|g')
TMPDIR=$(mktemp --directory)
echo "Installing libstdc++6 $LIBSTDC_VERSION to fix Emscripten ..."
echo "Extracting in $TMPDIR ..."
curl "${LIBSTDC_BASE}/libstdc++6_${LIBSTDC_VERSION}_amd64.deb" > "$TMPDIR/libstdc++6_${LIBSTDC_VERSION}_amd64.deb"
dpkg -x "$TMPDIR/libstdc++6_${LIBSTDC_VERSION}_amd64.deb" "$TMPDIR"
sudo mv "$TMPDIR/usr/lib/x86_64-linux-gnu/"libstdc++* /usr/lib/x86_64-linux-gnu
rm -rf "$TMPDIR"
fi
cd "$TARGET"
if [ ! -d emsdk ]; then
echo "Cloning SDK base system ..."
git clone --verbose --recursive "$EMSDK_DOWNLOAD" emsdk
fi
cd emsdk
echo "Updating SDK base to ${VERSION} ..."
git checkout main
git pull --verbose
git checkout ${VERSION}
echo "Installing SDK version latest ..."
./emsdk install ${VERSION}
echo "Activating SDK version latest ..."
./emsdk activate ${VERSION}