-
Notifications
You must be signed in to change notification settings - Fork 31
/
submodules.sh
executable file
·51 lines (37 loc) · 1003 Bytes
/
submodules.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
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# usage: $ ./submodules.sh
if [ -r .git ]; then
# submodule init & update
echo "[start submodule init]"
git submodule init
echo "end submodule init."
echo "[start submodule update]"
git submodule update
echo "end submodule update."
else
# clone from repo
cd ./oF/MOTIONER/src/addons
echo "[couldn't found ./.gitmodule. start clone seven addons from github repos instead of git submodule update]"
git clone https://github.com/rezaali/ofxUI.git
cd ofxUI
git checkout 93715f1
cd ../
git clone https://github.com/YoshitoONISHI/ofxException.git
cd ofxException
git checkout 2e8fd0b
cd ../
git clone https://github.com/YoshitoONISHI/ofxNonCopyable.git
cd ofxNonCopyable
git checkout ffa3e53
cd ../
git clone https://github.com/YoshitoONISHI/ofxEvent.git
cd ofxEvent
git checkout 3cacf82
cd ../
git clone https://github.com/YoshitoONISHI/ofxUITabbedCanvas.git
cd ofxUITabbedCanvas
git checkout 89ec49e
cd ../
echo "end clone addons"
cd ../../../../
fi