Permalink
Browse files

installer

  • Loading branch information...
1 parent 638d8a8 commit 552895a48aa44bcbb590359ffaf8ca62faa0d6c4 @c3w committed Nov 5, 2011
Showing with 20 additions and 0 deletions.
  1. +20 −0 install.sh
View
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+cat <<__EOF__
+###
+## drumTruck INSTALL for OSX
+##
+__EOF__
+
+if ( ! which ffmpeg ); then { echo "MISSING ffmpeg"; exit 1; }; fi
+if ( ! which afplay ); then { echo "MISSING afplay"; exit 1; }; fi
+
+echo "installing to ~/bin"
+{ mkdir -p ~/bin && cp truck nanopads ~/bin; } || { echo "Error installing to ~/bin"; exit 1; }
+
+echo "adding ~/bin to PATH"
+cat >> ~/.bash_profile <<__EOF__
+export PATH="\${PATH}:~/bin"
+__EOF__
+
+echo "INSTALL COMPLETE. Relaunch Terminal to get your new PATH environment"

0 comments on commit 552895a

Please sign in to comment.