-
Notifications
You must be signed in to change notification settings - Fork 6
/
SETUP.sh
executable file
·42 lines (37 loc) · 889 Bytes
/
SETUP.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
32
33
34
35
36
37
38
39
40
41
#! /bin/sh
if [ -d "../kiwi" ]
then
cd ../kiwi/cpp
echo "-- Pulling kiwi from git"
git pull origin master
echo "-- Building Kiwi"
./REBUILD.sh
echo "-- Moving back to project directory"
cd ../../GLSL-Raymarching
else
cd ..
echo "-- Cloning Kiwi from git"
git clone https://nical@github.com/nical/kiwi.git
cd ./kiwi/cpp
echo "-- Building Kiwi"
./REBUILD.sh
echo "-- Moving back to project directory"
pwd
cd ../../GLSL-Raymarching
echo "-- Creating links for kiwi"
ln -s ../../kiwi/cpp/ ./extern/
mv ./extern/cpp ./extern/kiwi
ls ./extern/kiwi/
fi
if [ -d "./bin" ]
then
echo "-- bin directory already exists"
else
echo "-- Creating bin directory"
mkdir ./bin
fi
rm ./bin/shaders
echo "-- Creating links for shaders"
ln -s ../src/shaders/ ./bin/shaders
ls bin/shaders/
echo "-- Setup complete"