Skip to content
Browse files

added cloneAddons script; updated readme

  • Loading branch information...
1 parent c1c9509 commit ed9cf84c79294cfb411a43b86f5ba733b006ab58 @danomatika committed Jan 23, 2012
Showing with 63 additions and 0 deletions.
  1. +9 −0 README.markdown
  2. +52 −0 scripts/cloneAddons
  3. +1 −0 scripts/ofxAppUtils
  4. +1 −0 scripts/ofxPd
View
9 README.markdown
@@ -16,6 +16,15 @@ A port of Chris McCormick's Android [PdDroidParty](http://mccormick.cx/projects/
NOTE: THIS IS CURRENTLY IN AN ALPHA STAGE AND LIKELY NOT TO WORK JUST YET ... STAY TUNED.
+INSTALLATION & BUILDING
+-----------------------
+
+Run the `cloneAddons` script in the scripts folder to install the addon dependencies:
+* ofxPd
+* ofxAppUtils
+
+Currently, only Xcode projects are provided for MacOS and iOS.
+
DEVELOPING
----------
View
52 scripts/cloneAddons
@@ -0,0 +1,52 @@
+#! /bin/bash
+#
+# clone all needed addons
+#
+# 2012 Dan Wilcox danomatika.com
+#
+# references:
+# http://www.cyberciti.biz/faq/bash-for-loop-array/
+# http://tldp.org/LDP/abs/html/complexfunct.html
+# http://stackoverflow.com/questions/1063347/passing-arrays-as-parameters-in-bash
+#
+
+### variables
+
+WD=$(dirname $0)
+ADDONS_DIR="../../../addons"
+
+# addons
+danomatika_addons=(
+ "ofxPd"
+ "ofxAppUtils"
+)
+
+### functions
+
+# clone a list of addons form Github
+# $1 - Github user name
+# $2 - array of addon repo names
+function cloneAddons {
+ local user=$1
+ local array=("$@")
+
+ # load array from argument
+ for (( i = 1 ; i < ${#array[@]} ; i++ )) ; do
+ printf "${format}" $i "${array[$i]}"
+ done
+
+ # clone
+ for i in "${array[@]}" ; do
+ git clone git://github.com/$user/$i.git
+ done
+ return
+}
+
+### do stuff
+
+cd $WD
+cd $ADDONS_DIR
+
+# clone those addons
+
+cloneAddons danomatika "${danomatika_addons[@]}"
1 scripts/ofxAppUtils
@@ -0,0 +1 @@
+Subproject commit e170455f369b48903d81fac96e258598418108bc
1 scripts/ofxPd
@@ -0,0 +1 @@
+Subproject commit 808c0e87c879edb5b15200cdc93ecbafe2c0599e

0 comments on commit ed9cf84

Please sign in to comment.
Something went wrong with that request. Please try again.