Last active
December 18, 2016 20:04
-
-
Save fd0/c3ec442e3b77be0f959425469f6b7583 to your computer and use it in GitHub Desktop.
debian/rules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/make -f | |
export DH_OPTIONS | |
%: | |
dh $@ | |
override_dh_auto_build: | |
GOPATH=$(CURDIR):/usr/share/gocode go build -ldflags "-s -w -X \"main.compiledAt=$(shell date '+%Y-%m-%d %H:%M:%S')\" -X \"main.version=$(shell cat VERSION)\"" -o restic cmds/restic | |
override_dh_auto_test: | |
GOPATH=$(CURDIR):/usr/share/gocode go test restic/... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment