forked from blackbeans/kiteq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
61 lines (43 loc) · 1.27 KB
/
build.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
#!/bin/bash
go get github.com/golang/protobuf/{proto,protoc-gen-go}
go get github.com/blackbeans/go-uuid
go get github.com/go-sql-driver/mysql
go get github.com/blackbeans/zk
protoc --go_out=. ./protocol/*.proto
go build -a kiteq/stat
go build -a kiteq/protocol
go build -a kiteq/binding
go build -a kiteq/store
go build -a kiteq/store/mysql
go build -a kiteq/store/mmap
go build -a kiteq/pipe
go build -a kiteq/handler
go build -a kiteq/remoting/session
go build -a kiteq/remoting/server
go build -a kiteq/remoting/client
go build -a kiteq/client/chandler
go build -a kiteq/server
go build -a kiteq/client
#########
go install kiteq/stat
go install kiteq/protocol
go install kiteq/binding
go install kiteq/store
go install kiteq/store/mysql
go install kiteq/store/mmap
go install kiteq/pipe
go install kiteq/handler
go install kiteq/remoting/session
go install kiteq/remoting/server
go install kiteq/remoting/client
go install kiteq/client/chandler
go install kiteq/server
go install kiteq/client
##############
echo "------------ compoments installing is finished!-------------"
PROJ=`pwd | awk -F'/' '{print $(NF)}'`
#VERSION=$1
#go build -o ./$PROJ-$VERSION $PROJ.go
go build -a -o ./$PROJ $PROJ.go
go build -a kite_benchmark_producer.go
go build -a kite_benchmark_consumer.go