TheBrokenRail
0e3b0cbc87
Some checks failed
ScriptCraft/pipeline/head There was a failure building this commit
17 lines
389 B
Bash
Executable File
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 |