build: Add spelling checks and check if curl is installed.

This commit is contained in:
Harshavardhana
2016-02-09 21:51:03 -08:00
parent 9b29af8bbe
commit 98ee5fcf55
2 changed files with 16 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ _init() {
## Minimum required versions for build dependencies
GIT_VERSION="1.0"
CURL_VERSION="7.12.0"
GPG_VERSION="1.3"
GO_VERSION="1.5.1"
OSX_VERSION="10.8"
@@ -186,6 +187,11 @@ check_deps() {
if [ $? -ge 2 ]; then
MISSING="${MISSING} gpg"
fi
check_version "$(env curl --version 2>/dev/null | sed -e 's/^.* \([0-9.\].*\).*$/\1/' -e 's/^\([0-9.\]*\).*/\1/g' | head -1)" "${CURL_VERSION}"
if [ $? -ge 2 ]; then
MISSING="${MISSING} curl"
fi
}
main() {