Skip to content

Commit

Permalink
Reworked packaging script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Best committed Apr 16, 2014
1 parent a615b53 commit c653787
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 50 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.sublime-workspace
*.pyc
logs/
build/
50 changes: 0 additions & 50 deletions res/packaging

This file was deleted.

36 changes: 36 additions & 0 deletions res/packaging.command
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/sh
#
# Generate an archive with packaged content for easier delivery.
# The generated archive contains:
# - Source files (MIDI.cpp / MIDI.h)
# - Resources (keywords.txt)
# - Examples for Arduino IDE
# - Installation scripts

cd "`dirname "${0}"`"

root="${PWD}/.."
build="$root/build/MIDI"

echo root $root
echo build $build

# Create a temporary destination folder
mkdir -p "$build"
mkdir -p "$build/examples"

# Copy sources
cd "$root/src/"
cp * "$build/"

# Copy resources
cd "$root/res/"
cp keywords.txt "$build/"

# Copy examples
cd "$root/res/examples/"
cp -r * "$build/examples"

# Generate package
cd "$build/.."
zip -r Arduino_MIDI_Library.zip MIDI

0 comments on commit c653787

Please sign in to comment.