mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	Added parameters to script build-arduino-package.sh
This commit is contained in:
		| @@ -1,21 +1,23 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| TAG=$(git describe) | set -eu | ||||||
| OUTPUT="ArduinoJson-$TAG.zip" |  | ||||||
|  |  | ||||||
| cd $(dirname $0)/../../.. | INPUT=$1 | ||||||
|  | OUTPUT=$2 | ||||||
|  |  | ||||||
|  | cd "$INPUT" | ||||||
|  |  | ||||||
| # remove existing file | # remove existing file | ||||||
| rm -f $OUTPUT | rm -f "$OUTPUT" | ||||||
|  |  | ||||||
| # create zip | # create zip | ||||||
| 7z a $OUTPUT \ | 7z a "$OUTPUT" \ | ||||||
|     -xr!.vs \ | 	-xr!.vs \ | ||||||
| 	ArduinoJson/CHANGELOG.md \ | 	CHANGELOG.md \ | ||||||
| 	ArduinoJson/examples \ | 	examples \ | ||||||
| 	ArduinoJson/src \ | 	src \ | ||||||
| 	ArduinoJson/keywords.txt \ | 	keywords.txt \ | ||||||
| 	ArduinoJson/library.properties \ | 	library.properties \ | ||||||
| 	ArduinoJson/LICENSE.md \ | 	LICENSE.md \ | ||||||
| 	ArduinoJson/README.md \ | 	README.md \ | ||||||
| 	ArduinoJson/ArduinoJson.h | 	ArduinoJson.h | ||||||
|   | |||||||
| @@ -59,7 +59,7 @@ commit_new_version | |||||||
| add_tag | add_tag | ||||||
| push | push | ||||||
|  |  | ||||||
| extras/scripts/build-arduino-package.sh | extras/scripts/build-arduino-package.sh . "../ArduinoJson-$TAG.zip" | ||||||
| extras/scripts/build-single-header.sh "src/ArduinoJson.h" "../ArduinoJson-$TAG.h" | extras/scripts/build-single-header.sh "src/ArduinoJson.h" "../ArduinoJson-$TAG.h" | ||||||
| extras/scripts/build-single-header.sh "src/ArduinoJson.hpp" "../ArduinoJson-$TAG.hpp" | extras/scripts/build-single-header.sh "src/ArduinoJson.hpp" "../ArduinoJson-$TAG.hpp" | ||||||
| extras/scripts/wandbox/publish.sh "../ArduinoJson-$TAG.h" | extras/scripts/wandbox/publish.sh "../ArduinoJson-$TAG.h" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user