File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,21 @@ GOTEST ?= godep $(GOCMD) test
77GODEP ?= $(GOTEST ) -i
88GOFMT ?= gofmt -w
99
10+ FPM_VERSION ?= $(shell ./dist/scw-Darwin-i386 --version | sed 's/.* v\([0-9.]* \) ,.*/\1/g')
11+ FPM_DOCKER ?= \
12+ -it --rm \
13+ -v $(PWD ) /dist:/output \
14+ -w /output \
15+ tenzer/fpm fpm
16+ FPM_ARGS ?= \
17+ -C /input/ \
18+ -s dir \
19+ --name=scw \
20+ --no-depends \
21+ --version=$(FPM_VERSION ) \
22+ --license=mit \
23+ 24+
1025
1126NAME = scw
1227SRC = .
@@ -79,6 +94,17 @@ cross: scwversion/version.go
7994 rm -rf tmp dist/godep
8095
8196
97+ packages :
98+ rm -f dist/* .deb
99+ docker run -v $(PWD ) /dist/scw-Linux-x86_64:/input/scw $(FPM_DOCKER ) $(FPM_ARGS ) -t deb -a x86_64 ./
100+ docker run -v $(PWD ) /dist/scw-Linux-i386:/input/scw $(FPM_DOCKER ) $(FPM_ARGS ) -t deb -a i386 ./
101+ docker run -v $(PWD ) /dist/scw-Linux-arm:/input/scw $(FPM_DOCKER ) $(FPM_ARGS ) -t deb -a arm ./
102+
103+
104+ # publish_packages:
105+ # docker run -v $(PWD)/dist moul/dput ppa:moul/scw dist/scw_$(FPM_VERSION)_arm.changes
106+
107+
82108travis_install :
83109 go get golang.org/x/tools/cmd/cover
84110
You can’t perform that action at this time.
0 commit comments