Skip to content

Commit 404961f

Browse files
added shell script to build packaged version of library. updated version number in properties file
1 parent 536c6e1 commit 404961f

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
.DS_Store
2-
release.sh

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ sentence=This library implements the Firmata protocol and allows you to control
55
paragraph=The Firmata library implements the Firmata protocol for communicating with software on the host computer. This allows you to write custom firmware without having to create your own protocol and objects for the programming environment that you are using.
66
url=http://firmata.org
77
architectures=*
8-
version=2.4.0
8+
version=2.5.0
99
dependencies=
1010
core-dependencies=arduino (>=1.5.0)

release.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/sh
2+
3+
# use this script to package Firmata for distribution
4+
# to do: make an ant script or something else that is cross platform
5+
6+
# package for Arduino 1.0.x
7+
mkdir -p temp/Firmata
8+
cp -r examples temp/Firmata
9+
cp -r extras temp/Firmata
10+
cp Boards.h temp/Firmata
11+
cp Firmata.cpp temp/Firmata
12+
cp Firmata.h temp/Firmata
13+
cp keywords.txt temp/Firmata
14+
cp readme.md temp/Firmata
15+
cd temp
16+
find . -name "*.DS_Store" -type f -delete
17+
zip -r Firmata.zip ./Firmata/
18+
cd ..
19+
mv ./temp/Firmata.zip Firmata-2.4.0.zip
20+
21+
#package for Arduino 1.5.x
22+
cp library.properties temp/Firmata
23+
cd temp/Firmata
24+
mv readme.md ./extras/
25+
mkdir src
26+
mv Boards.h ./src/
27+
mv Firmata.cpp ./src/
28+
mv Firmata.h ./src/
29+
cd ..
30+
find . -name "*.DS_Store" -type f -delete
31+
zip -r Firmata.zip ./Firmata/
32+
cd ..
33+
mv ./temp/Firmata.zip Arduino-1.5.x-Firmata-2.4.0.zip
34+
rm -r ./temp

0 commit comments

Comments
 (0)