forked from blackbeans/kiteq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
48 lines (35 loc) · 1.42 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
#!/bin/bash
#go get github.com/golang/groupcache/lru
#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/log4go
#go get github.com/blackbeans/go-zookeeper/zk
#go get github.com/blackbeans/turbo
#go get github.com/naoina/toml
#go get github.com/blackbeans/kiteq-common/stat
#go get github.com/blackbeans/kiteq-common/protocol
#go get github.com/blackbeans/kiteq-common/registry
#go get github.com/blackbeans/kiteq-common/registry/bind
#go get github.com/blackbeans/kiteq-common/exchange
#go get github.com/blackbeans/kiteq-common/store
#go get github.com/blackbeans/kiteq-common/store/mysql
#go get github.com/blackbeans/kiteq-common/store/file
#go get github.com/blackbeans/kiteq-common/store/memory
#
#protoc --go_out=. ./protocol/*.proto
go build kiteq/handler
go build kiteq/server
#########
go install kiteq/handler
go install kiteq/server
##############
echo "------------ compoments installing is finished!-------------"
PROJ=`pwd | awk -F'/' '{print $(NF)}'`
#VERSION=$1
go build -o ./$PROJ $PROJ.go
#CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -a -o ./$PROJ $PROJ.go
#GOOS=darwin GOARCH=386 go build -a -o ./$PROJ $PROJ.go
#tar -zcvf kiteq-1.0.2-linux-386.tar.gz $PROJ log/log.xml conf/*.toml
#tar -zcvf kiteq-1.0.2-darwin-386.tar.gz $PROJ log/log.xml conf/*.toml
tar -zcvf kiteq.tar.gz $PROJ log/log.xml conf/*.toml