34 lines
741 B
Bash
34 lines
741 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# use this script to package Firmata for distribution
|
||
|
|
||
|
# package for Arduino 1.0.x
|
||
|
mkdir -p temp/Firmata
|
||
|
cp -r examples temp/Firmata
|
||
|
cp -r extras temp/Firmata
|
||
|
cp -r utility temp/Firmata
|
||
|
cp *.cpp temp/Firmata
|
||
|
cp *.h temp/Firmata
|
||
|
cp keywords.txt temp/Firmata
|
||
|
cp readme.md temp/Firmata
|
||
|
cd temp
|
||
|
find . -name "*.DS_Store" -type f -delete
|
||
|
zip -r Firmata.zip ./Firmata/
|
||
|
cd ..
|
||
|
mv ./temp/Firmata.zip Arduino-1.0.x-Firmata-2.5.8.zip
|
||
|
|
||
|
#package for Arduino 1.6.x and 1.8.x
|
||
|
cp library.properties temp/Firmata
|
||
|
cd temp/Firmata
|
||
|
mv readme.md ./extras/
|
||
|
mkdir src
|
||
|
mv *.cpp ./src/
|
||
|
mv *.h ./src/
|
||
|
mv utility ./src/
|
||
|
cd ..
|
||
|
find . -name "*.DS_Store" -type f -delete
|
||
|
zip -r Firmata.zip ./Firmata/
|
||
|
cd ..
|
||
|
mv ./temp/Firmata.zip Firmata-2.5.8.zip
|
||
|
rm -r ./temp
|