forked from bblanchon/ArduinoJson
14 lines
255 B
Bash
14 lines
255 B
Bash
#!/bin/bash
|
|
|
|
ZIP="C:\Program Files\7-Zip\7z.exe"
|
|
|
|
TAG=$(git describe)
|
|
OUTPUT="ArduinoJson-$TAG.zip"
|
|
|
|
cd ..
|
|
cd ..
|
|
|
|
INPUT=$(find ArduinoJson -regex ".*\.\(cpp\|h\|md\|txt\|ino\)$" -not -regex ".*Tests/.*")
|
|
|
|
rm -f $OUTPUT
|
|
"$ZIP" a $OUTPUT $INPUT |