docs.sheetjs.com/tests/engines-quickjs.sh

25 lines
553 B
Bash
Executable File

#!/bin/bash
# https://docs.sheetjs.com/docs/demos/engines/quickjs
cd /tmp
rm -rf sheetjs-quickjs
mkdir -p sheetjs-quickjs
cd sheetjs-quickjs
git clone https://github.com/bellard/quickjs
cd quickjs
git checkout 6e2e68f
make
cd ..
cp quickjs/libquickjs.a .
cp quickjs/quickjs.h .
curl -LO https://docs.sheetjs.com/quickjs/sheetjs.quick.c
gcc -o sheetjs.quick -Wall sheetjs.quick.c libquickjs.a -lm
curl -LO https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js
curl -LO https://docs.sheetjs.com/pres.numbers
./sheetjs.quick pres.numbers