From e29a037970d81dfcff600d8bb063f7b1aee697ca Mon Sep 17 00:00:00 2001 From: dennisppaul Date: Tue, 29 Sep 2020 15:43:18 +0200 Subject: [PATCH] added release build script, cleaned up --- .../libraries}/BlinkSenseMove.zip | Bin .../examples/FoobarExample/FoobarExample.ino | 0 .../libraries}/Foobar/keywords.txt | 0 .../libraries}/Foobar/library.properties | 0 .../libraries}/Foobar/src/foobar.cpp | 0 .../libraries}/Foobar/src/foobar.h | 0 tools/pack-release.sh | 17 +++++++++++++++++ 7 files changed, 17 insertions(+) rename {libraries => attic/libraries}/BlinkSenseMove.zip (100%) rename {libraries => attic/libraries}/Foobar/examples/FoobarExample/FoobarExample.ino (100%) rename {libraries => attic/libraries}/Foobar/keywords.txt (100%) rename {libraries => attic/libraries}/Foobar/library.properties (100%) rename {libraries => attic/libraries}/Foobar/src/foobar.cpp (100%) rename {libraries => attic/libraries}/Foobar/src/foobar.h (100%) create mode 100755 tools/pack-release.sh diff --git a/libraries/BlinkSenseMove.zip b/attic/libraries/BlinkSenseMove.zip similarity index 100% rename from libraries/BlinkSenseMove.zip rename to attic/libraries/BlinkSenseMove.zip diff --git a/libraries/Foobar/examples/FoobarExample/FoobarExample.ino b/attic/libraries/Foobar/examples/FoobarExample/FoobarExample.ino similarity index 100% rename from libraries/Foobar/examples/FoobarExample/FoobarExample.ino rename to attic/libraries/Foobar/examples/FoobarExample/FoobarExample.ino diff --git a/libraries/Foobar/keywords.txt b/attic/libraries/Foobar/keywords.txt similarity index 100% rename from libraries/Foobar/keywords.txt rename to attic/libraries/Foobar/keywords.txt diff --git a/libraries/Foobar/library.properties b/attic/libraries/Foobar/library.properties similarity index 100% rename from libraries/Foobar/library.properties rename to attic/libraries/Foobar/library.properties diff --git a/libraries/Foobar/src/foobar.cpp b/attic/libraries/Foobar/src/foobar.cpp similarity index 100% rename from libraries/Foobar/src/foobar.cpp rename to attic/libraries/Foobar/src/foobar.cpp diff --git a/libraries/Foobar/src/foobar.h b/attic/libraries/Foobar/src/foobar.h similarity index 100% rename from libraries/Foobar/src/foobar.h rename to attic/libraries/Foobar/src/foobar.h diff --git a/tools/pack-release.sh b/tools/pack-release.sh new file mode 100755 index 0000000..9a6e91e --- /dev/null +++ b/tools/pack-release.sh @@ -0,0 +1,17 @@ +#! /bin/sh + +LIB_NAME=BlinkSenseMove +ZIP_NAME=$LIB_NAME.zip +LIB_DIR=../libraries + + +cd $LIB_DIR + +find .. -name ".DS_Store" -print0 | xargs -0 rm -f + +if [ -f "$ZIP_NAME" ]; then + echo "# deleting existing zip file" + rm "$ZIP_NAME" +fi + +zip --quiet -r "$ZIP_NAME" ./$LIB_NAME