Merge pull request #1814 from aledbf/check-sha1sum

Check sha1sum command exists
This commit is contained in:
Justin Santa Barbara 2017-02-08 01:54:04 -05:00 committed by GitHub
commit 248323fc7c
1 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,12 @@ ifdef STATIC_BUILD
EXTRA_LDFLAGS=-s
endif
SHASUMCMD := $(shell sha1sum --help 2> /dev/null)
ifndef SHASUMCMD
$(error "sha1sum command is not available")
endif
kops: kops-gobindata
go install ${EXTRA_BUILDFLAGS} -ldflags "-X k8s.io/kops.Version=${VERSION} -X k8s.io/kops.GitVersion=${GITSHA} ${EXTRA_LDFLAGS}" k8s.io/kops/cmd/kops/...