| 
									
										
										
										
											2017-09-12 20:02:06 +00:00
										 |  |  | #!/bin/bash
 | 
					
						
							| 
									
										
										
										
											2018-02-14 20:06:35 +00:00
										 |  |  | DUKTAPE_VER=2.2.0 | 
					
						
							| 
									
										
										
										
											2017-09-12 20:02:06 +00:00
										 |  |  | if [ ! -e duktape-$DUKTAPE_VER ]; then | 
					
						
							|  |  |  | 	if [ ! -e duktape-$DUKTAPE_VER.tar ]; then | 
					
						
							|  |  |  | 		if [ ! -e duktape-$DUKTAPE_VER.tar.xz ]; then | 
					
						
							| 
									
										
										
										
											2019-04-01 14:25:15 +00:00
										 |  |  | 			curl -O https://duktape.org/duktape-$DUKTAPE_VER.tar.xz | 
					
						
							| 
									
										
										
										
											2017-09-12 20:02:06 +00:00
										 |  |  | 		fi | 
					
						
							|  |  |  | 		xz -d duktape-$DUKTAPE_VER.tar.xz | 
					
						
							|  |  |  | 	fi | 
					
						
							|  |  |  | 	tar -xf duktape-$DUKTAPE_VER.tar | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | for f in duktape.{c,h} duk_config.h; do | 
					
						
							|  |  |  | 	cp duktape-$DUKTAPE_VER/src/$f . | 
					
						
							|  |  |  | done | 
					
						
							|  |  |  | 
 |