This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
ScriptCraft/scriptcraft/scripts/download-quickjs.sh

17 lines
389 B
Bash
Executable File

#!/bin/sh
QUICKJS_VERSION='2020-04-12'
set -e
if [ -e quickjs.tar.xz ]; then
rm -f quickjs.tar.xz
fi
curl -L -o quickjs.tar.xz https://bellard.org/quickjs/quickjs-${QUICKJS_VERSION}.tar.xz
if [ -d ../src/main/c/quickjs ]; then
rm -rf ../src/main/c/quickjs
fi
mkdir ../src/main/c/quickjs
tar -Jxf quickjs.tar.xz --strip-components=1 -C ../src/main/c/quickjs
rm -f quickjs.tar.xz