Rev | Line | |
---|
[209] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | TAG=$(git describe)
|
---|
| 4 | OUTPUT="ArduinoJson-$TAG-old-layout.zip"
|
---|
| 5 |
|
---|
| 6 | cd $(dirname $0)/..
|
---|
| 7 |
|
---|
| 8 | cat > ArduinoJson.h <<END
|
---|
| 9 | // WARNING:
|
---|
| 10 | // --------
|
---|
| 11 | // This file is a workaround for old version of the Arduino IDE.
|
---|
| 12 | // If you are using Arduino IDE 1.0.6 or above, then you installed the wrong
|
---|
| 13 | // package of ArduinoJson.
|
---|
| 14 | // In that case, just delete the current installation and install the package.
|
---|
| 15 |
|
---|
| 16 | END
|
---|
| 17 | cp ArduinoJson.h ArduinoJson.cpp
|
---|
| 18 |
|
---|
| 19 | cat "include/ArduinoJson.h" | sed 's!include "!include "include/!g' >> ArduinoJson.h
|
---|
| 20 |
|
---|
| 21 | find src -name "*.cpp" |
|
---|
| 22 | while read FILE; do
|
---|
| 23 | echo >> ArduinoJson.cpp
|
---|
| 24 | echo "// $FILE" >> ArduinoJson.cpp
|
---|
| 25 | echo "//" >> ArduinoJson.cpp
|
---|
| 26 | cat "$FILE" | sed 's!\.\./!!g' >> ArduinoJson.cpp
|
---|
| 27 | done
|
---|
| 28 |
|
---|
| 29 | unix2dos ArduinoJson.cpp
|
---|
| 30 | unix2dos ArduinoJson.h
|
---|
| 31 |
|
---|
| 32 | pushd ..
|
---|
| 33 |
|
---|
| 34 | # remove existing file
|
---|
| 35 | rm -f $OUTPUT
|
---|
| 36 |
|
---|
| 37 | # create zipman dos2
|
---|
| 38 | 7z a $OUTPUT \
|
---|
| 39 | ArduinoJson/CHANGELOG.md \
|
---|
| 40 | ArduinoJson/examples \
|
---|
| 41 | ArduinoJson/include/ArduinoJson \
|
---|
| 42 | ArduinoJson/keywords.txt \
|
---|
| 43 | ArduinoJson/LICENSE.md \
|
---|
| 44 | ArduinoJson/README.md \
|
---|
| 45 | ArduinoJson/ArduinoJson.h \
|
---|
| 46 | ArduinoJson/ArduinoJson.cpp \
|
---|
| 47 | -x!ArduinoJson/src/CMakeLists.txt
|
---|
| 48 |
|
---|
| 49 | popd
|
---|
| 50 |
|
---|
| 51 | rm ArduinoJson.h
|
---|
| 52 | rm ArduinoJson.cpp
|
---|
Note:
See
TracBrowser
for help on using the repository browser.