source: rtos_arduino/trunk/arduino_lib/libraries/ArduinoJson/scripts/build-old-arduino-package.sh@ 209

Last change on this file since 209 was 209, checked in by ertl-honda, 8 years ago

BlueMix用のフィアルを追加

File size: 1.1 KB
Line 
1#!/bin/bash
2
3TAG=$(git describe)
4OUTPUT="ArduinoJson-$TAG-old-layout.zip"
5
6cd $(dirname $0)/..
7
8cat > 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
16END
17cp ArduinoJson.h ArduinoJson.cpp
18
19cat "include/ArduinoJson.h" | sed 's!include "!include "include/!g' >> ArduinoJson.h
20
21find src -name "*.cpp" |
22while read FILE; do
23 echo >> ArduinoJson.cpp
24 echo "// $FILE" >> ArduinoJson.cpp
25 echo "//" >> ArduinoJson.cpp
26 cat "$FILE" | sed 's!\.\./!!g' >> ArduinoJson.cpp
27done
28
29unix2dos ArduinoJson.cpp
30unix2dos ArduinoJson.h
31
32pushd ..
33
34# remove existing file
35rm -f $OUTPUT
36
37# create zipman dos2
387z 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
49popd
50
51rm ArduinoJson.h
52rm ArduinoJson.cpp
Note: See TracBrowser for help on using the repository browser.