forked from marmelab/gaudi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
32 lines (25 loc) · 1.11 KB
/
makefile
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
define DISTRIBUTION
Origin: gaudi.io
Label: apt repository
Codename: precise
Version: $(GAUDI_VERSION)
Architectures: amd64 i386 source
Components: main non-free contrib
Description: gaudi debian package repository
SignWith: yes
Pull: precise
endef
GAUDI_VERSION = $(shell go run main.go -v)
export DISTRIBUTION
apt:
goxc -tasks-=go-test -pv=$(GAUDI_VERSION)
cd templates/ && tar -cvf $(GOPATH)/bin/gaudi-xc/$(GAUDI_VERSION)/templates.tar . && cd -
mkdir -p $(GOPATH)/bin/gaudi-xc/$(GAUDI_VERSION)/conf/
echo "$$DISTRIBUTION" > $(GOPATH)/bin/gaudi-xc/$(GAUDI_VERSION)/conf/distributions
cp /usr/gaudi/gaudi.gpg.key $(GOPATH)/bin/gaudi-xc/$(GAUDI_VERSION)/gaudi.gpg.key
cd $(GOPATH)/bin/gaudi-xc/$(GAUDI_VERSION) && \
dpkg-sig --sign builder gaudi_$(GAUDI_VERSION)_amd64.deb && \
dpkg-sig --sign builder gaudi_$(GAUDI_VERSION)_i386.deb && \
reprepro --ask-passphrase remove precise gaudi && \
reprepro --ask-passphrase -Vb . -S main includedeb precise gaudi_$(GAUDI_VERSION)_amd64.deb && \
reprepro --ask-passphrase -Vb . -S main includedeb precise gaudi_$(GAUDI_VERSION)_i386.deb