#!/bin/bash # https://docs.sheetjs.com/docs/demos/engines/mujs cd /tmp rm -rf sheetjs-mu mkdir sheetjs-mu cd sheetjs-mu curl -LO https://mujs.com/downloads/mujs-1.3.5.zip unzip mujs-1.3.5.zip cd mujs-1.3.5 make release cd .. cp mujs-1.3.5/build/release/libmujs.a mujs-1.3.5/mujs.h . 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