-
Notifications
You must be signed in to change notification settings - Fork 5
/
installOsx.sh
executable file
·31 lines (26 loc) · 1.17 KB
/
installOsx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# --------------------------------------------------------------------------
# install script for Osx
# --------------------------------------------------------------------------
# Processing Wrapper for the Oculus Rift library
# http://github.com/xohm/SimpleOculusRift
# --------------------------------------------------------------------------
# prog: Max Rheiner / Interaction Design / zhdk / http://iad.zhdk.ch/
# date: 06/24/2014 (m/d/y)
# ----------------------------------------------------------------------------
# Change P5_Path to the folder where Processing stores the libraries
# On Osx it should be in '~Documents/Processing' (Processing 1.5.1)
# ----------------------------------------------------------------------------
# copy the libs/doc/examples to the processing folders
P5_Path=~/Documents/Processing
# check if libraries folder exists
if [ ! -d $P5_Path/libraries ]; then
mkdir $P5_Path/libraries
fi
# copie the files
cp -r ./dist/all/SimpleOculusRift $P5_Path/libraries/
# remove all subversion folders
cd $P5_Path/libraries/SimpleOculusRift
rm -rf `find . -type d -name .svn`
rm -rf `find . -type d -name .git`
echo "--- installed SimpleOculusRift ---"