Skip to content

Commit a599953

Browse files
committed
boilerplate install.sh
1 parent 4daf992 commit a599953

File tree

1 file changed

+11
-37
lines changed

1 file changed

+11
-37
lines changed

install.sh

Lines changed: 11 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,55 +4,29 @@
44

55
echo "Hello Openframe (ExamplePlugin install.sh)"
66

7+
# Some limited platform detection might be in order... though at present we're targeting the Pi
78
os=$(uname)
89
arq=$(uname -m)
910

10-
# glslViewer will get cloned into 'player' dir
11-
mkdir player
12-
cd player
13-
1411
if [ $os == "Linux" ]; then
1512

1613
# on Debian Linux distributions
17-
sudo apt-get update
18-
# do we really want to upgrade? this could take a damn long time.
19-
sudo apt-get upgrade
2014

2115
# on RaspberryPi
2216
if [ $arq == "armv7l" ]; then
23-
git clone http://github.com/patriciogonzalezvivo/glslViewer
24-
cd glslViewer
25-
make
26-
sudo make install
27-
else
28-
sudo apt-get install git-core cmake xorg-dev libglu1-mesa-dev
29-
git clone https://github.com/glfw/glfw.git
30-
cd glfw
31-
cmake .
32-
make
33-
sudo make install
34-
cd ..
35-
git clone http://github.com/patriciogonzalezvivo/glslViewer
36-
cd glslViewer
37-
make
38-
sudo make install
39-
fi
4017

18+
# ####
19+
#
20+
# FOR NOW, CODE GOES HERE since we're shooting for RPi support
21+
#
22+
# ####
4123

42-
elif [ $os == "Darwin" ]; then
4324

44-
# ON MacOX
45-
if [ ! -e /usr/local/bin/brew ]; then
46-
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
25+
26+
else
27+
# Non-arm7 Debian...
4728
fi
4829

49-
brew update
50-
# do we really want to upgrade? this could take a damn long time.
51-
brew upgrade
52-
brew tap homebrew/versions
53-
brew install glfw3 pkg-config
54-
git clone http://github.com/patriciogonzalezvivo/glslViewer
55-
cd glslViewer
56-
make
57-
make install
30+
elif [ $os == "Darwin" ]; then
31+
# OSX
5832
fi

0 commit comments

Comments
 (0)