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

27 lines
611 B
Bash
Raw Normal View History

2024-05-26 07:50:55 +00:00
#!/bin/bash
# https://docs.sheetjs.com/docs/demos/engines/mujs
cd /tmp
rm -rf sheetjs-mu
mkdir sheetjs-mu
cd sheetjs-mu
2024-12-18 05:47:18 +00:00
curl -LO https://mujs.com/downloads/mujs-1.3.5.zip
unzip mujs-1.3.5.zip
cd mujs-1.3.5
2024-05-26 07:50:55 +00:00
make release
cd ..
2024-12-18 05:47:18 +00:00
cp mujs-1.3.5/build/release/libmujs.a mujs-1.3.5/mujs.h .
2024-05-26 07:50:55 +00:00
curl -LO https://docs.sheetjs.com/mujs/SheetJSMu.c
gcc -o SheetJSMu SheetJSMu.c -L. -lmujs -lm -lc -std=c89 -Wall
curl -LO https://cdn.sheetjs.com/xlsx-latest/package/dist/shim.min.js
curl -LO https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.full.min.js
curl -LO https://sheetjs.com/pres.xlsb
./SheetJSMu pres.xlsb