mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Moved ancillary files to extras/ (fixes #1011)
				
					
				
			This commit is contained in:
		
							
								
								
									
										29
									
								
								extras/scripts/wandbox/publish.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										29
									
								
								extras/scripts/wandbox/publish.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| set -eu | ||||
|  | ||||
| ARDUINOJSON_H="$1" | ||||
|  | ||||
| read_string() { | ||||
| 	jq --slurp --raw-input '.' "$1" | ||||
| } | ||||
|  | ||||
| compile() { | ||||
| 	FILE_PATH="$(dirname $0)/$1.cpp" | ||||
| 	cat >parameters.json <<END | ||||
| { | ||||
|   "code":$(read_string "$FILE_PATH"), | ||||
|   "codes": [{"file":"ArduinoJson.h","code":$(read_string "$ARDUINOJSON_H")}], | ||||
|   "options": "warning", | ||||
|   "compiler": "gcc-4.9.3", | ||||
|   "save": true | ||||
| } | ||||
| END | ||||
| 	URL=$(curl -sS -H "Content-type: application/json" -d @parameters.json  https://wandbox.org/api/compile.json | jq --raw-output .url) | ||||
| 	rm parameters.json | ||||
| 	echo "  $1: $URL" | ||||
| } | ||||
|  | ||||
| compile "JsonGeneratorExample" | ||||
| compile "JsonParserExample" | ||||
| compile "MsgPackParserExample" | ||||
		Reference in New Issue
	
	Block a user