-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathautoBuild.sh
executable file
·68 lines (56 loc) · 1.27 KB
/
autoBuild.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
echo '=============== A0PreMainTime ================'
#脚本运行当前目录
CUR_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
echo '***** A0PreMainTime file ---- '$CUR_DIR' *****'
#默认配置release环境
currentConfigratin="release"
function compilingSetting {
#编译A0PreMainTime
cd Library/A0PreMainTime
./autoTimeBuild.sh $currentConfigratin
}
#***************** Configratin ********************
function compilingConfigratinDebug {
currentConfigratin="debug"
echo "> debug"
compilingSetting
}
function compilingConfigratinRelease {
echo "> release"
compilingSetting
}
function compilingConfigratinOption()
{
read -p "Please choose your configratin:" choice
case $choice in
1)
compilingConfigratinRelease
break
;;
2)
compilingConfigratinDebug
break
;;
"")
compilingConfigratinRelease
break
;;
*)
echo "sorry,wrong selection"
;;
esac
}
function compilingConfigratin()
{
while true
do
cat <<eof
What configratin do you want to compiling?
1. release
2. debug
Not: Enter => (release)
eof
compilingConfigratinOption
done
}
compilingConfigratin