forked from omega-gg/MotionBox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3rdparty.sh
46 lines (31 loc) · 1.3 KB
/
3rdparty.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
#!/bin/sh
set -e
#--------------------------------------------------------------------------------------------------
# Settings
#--------------------------------------------------------------------------------------------------
source="https://github.com/omega-gg"
#--------------------------------------------------------------------------------------------------
# Syntax
#--------------------------------------------------------------------------------------------------
if [ $# != 1 ] \
|| \
[ $1 != "win32" -a $1 != "win64" -a $1 != "win32-msvc" -a $1 != "win64-msvc" -a \
$1 != "macOS" -a $1 != "linux" -a $1 != "android" ]; then
echo "Usage: 3rdparty <win32 | win64 | win32-msvc | win64-msvc | macOS | linux | android>"
exit 1
fi
#--------------------------------------------------------------------------------------------------
# Clone
#--------------------------------------------------------------------------------------------------
cd ..
if [ ! -d "Sky" ]; then
git clone $source/Sky
fi
if [ ! -d "backend" ]; then
git clone $source/backend
fi
#--------------------------------------------------------------------------------------------------
# 3rdparty
#--------------------------------------------------------------------------------------------------
cd Sky
sh 3rdparty.sh $1