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
TheBrokenRail 0e3b0cbc87
Some checks failed
ScriptCraft/pipeline/head There was a failure building this commit
Use Composite Builds
2020-05-31 13:25:16 -04:00

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