forked from sheetjs/docs.sheetjs.com
26 lines
613 B
Bash
Executable File
26 lines
613 B
Bash
Executable File
#!/bin/bash
|
|
# https://docs.sheetjs.com/docs/demos/engines/duktape#perl-demo
|
|
|
|
cd /tmp
|
|
rm -rf sheetjs-duk-perl
|
|
mkdir sheetjs-duk-perl
|
|
cd sheetjs-duk-perl
|
|
|
|
curl -LO https://docs.sheetjs.com/duk/SheetJSDuk.pl
|
|
|
|
curl -LO https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.extendscript.js
|
|
curl -LO https://docs.sheetjs.com/pres.xlsx
|
|
|
|
perl SheetJSDuk.pl pres.xlsx; echo $?
|
|
|
|
npx -y xlsx-cli SheetJSDuk.xlsb
|
|
cat <<EOF
|
|
If the script failed with an error about XS, install dependencies:
|
|
|
|
$ cpan install JavaScript::Duktape::XS
|
|
|
|
This command may need to be run as root:
|
|
|
|
$ sudo cpan install JavaScript::Duktape::XS
|
|
EOF
|