aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix+debian@gueux.org>2016-12-19 15:14:37 +0100
committerFélix Sipma <felix+debian@gueux.org>2016-12-19 15:28:41 +0100
commit41abf26d22e0ddf35c31331eff12dd32c7c329ff (patch)
treef51585a494bff884a3456e35525119f319cbef77
parent36f6e3bcb6e539f1a3db7d6b0e6e29e414ada65c (diff)
use "go build" instead of "go run build.go" to build
Thanks, Alexander Neumann
-rwxr-xr-xdebian/rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index 2276043..59ea44e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,7 @@ export DH_OPTIONS
dh $@
override_dh_auto_build:
- go run build.go
+ GOPATH=$(CURDIR):/usr/share/gocode go build -ldflags "-s -w -X \"main.version=$(shell cat VERSION)\"" -o restic cmds/restic
override_dh_auto_test:
- go run build.go --test
+ GOPATH=$(CURDIR):/usr/share/gocode go test restic/...