Use godep

This commit is contained in:
Jakob Borg
2014-03-22 21:33:18 +01:00
parent 89399092b9
commit 52cad94e86
104 changed files with 20937 additions and 2 deletions

View File

@@ -6,12 +6,19 @@ distFiles=(README.md LICENSE) # apart from the binary itself
version=$(git describe --always)
build() {
go build -ldflags "-w -X main.Version $version" ./cmd/syncthing
if which -s godep ; then
godep=godep
else
echo "Warning: no godep, using \"go get\" instead."
echo "Try \"go get github.com/tools/godep\"."
go get -d ./cmd/syncthing
godep=
fi
${godep} go build -ldflags "-w -X main.Version $version" ./cmd/syncthing
}
prepare() {
go run cmd/assets/assets.go gui > auto/gui.files.go
go get -d
}
test() {
@@ -43,6 +50,10 @@ case "$1" in
build
;;
test)
test
;;
tar)
rm -f *.tar.gz *.zip
prepare