forked from ZhouWeikuan/kuanli_server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake.sh
executable file
·44 lines (35 loc) · 816 Bytes
/
make.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
#!/bin/sh
dir=$(cd `dirname $0`; pwd)
echo $dir
echo $1
if [ ! $1 ]; then
cmd='help'
else
cmd=$1
fi
if [ $cmd = "all" ];then
git submodule update --init
echo -e "\n make pbc"
cd $dir/pbc && pwd
make all
echo -e "\n make pbc binding"
cd $dir/pbc/binding/lua53 && pwd
make all
echo -e "\n make skynet"
cd $dir/skynet && pwd
make linux
elif [ $cmd = "clean" ];then
echo -e "\n clean skynet"
cd $dir/skynet && pwd
make clean
echo -e "\n clean pbc"
cd $dir/pbc && pwd
make clean
echo -e "\n clean pbc binding"
cd $dir/pbc/binding/lua53 && pwd
make clean
else
echo "make help"
echo "make.sh all"
echo "make.sh clean"
fi