forked from sheetjs/docs.sheetjs.com
		
	
		
			
	
	
		
			23 lines
		
	
	
		
			605 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			605 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| 
								 | 
							
								#!/bin/bash
							 | 
						||
| 
								 | 
							
								# https://docs.sheetjs.com/docs/demos/engines/duktape
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								cd /tmp
							 | 
						||
| 
								 | 
							
								rm -rf sheetjs-duk
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								mkdir sheetjs-duk
							 | 
						||
| 
								 | 
							
								cd sheetjs-duk
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								curl -LO https://duktape.org/duktape-2.7.0.tar.xz
							 | 
						||
| 
								 | 
							
								tar -xJf duktape-2.7.0.tar.xz
							 | 
						||
| 
								 | 
							
								mv duktape-2.7.0/src/*.{c,h} .
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								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://docs.sheetjs.com/pres.numbers
							 | 
						||
| 
								 | 
							
								curl -LO https://docs.sheetjs.com/duk/sheetjs.duk.c
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								gcc -std=c99 -Wall -osheetjs.duk sheetjs.duk.c duktape.c -lm
							 | 
						||
| 
								 | 
							
								./sheetjs.duk pres.numbers
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								npx -y xlsx-cli sheetjsw.xlsb
							 |