mirror of
https://github.com/minio/minio.git
synced 2025-01-26 22:23:15 -05:00
Merge pull request #183 from harshavardhana/pr_out_osx_compatibility_update_for_checkdeps_sh
This commit is contained in:
commit
a552800dcc
@ -18,6 +18,7 @@
|
|||||||
_init() {
|
_init() {
|
||||||
## Minimum required versions for build dependencies
|
## Minimum required versions for build dependencies
|
||||||
GCC_VERSION="4.0"
|
GCC_VERSION="4.0"
|
||||||
|
CLANG_VERSION="3.5"
|
||||||
YASM_VERSION="1.2.0"
|
YASM_VERSION="1.2.0"
|
||||||
GIT_VERSION="1.0"
|
GIT_VERSION="1.0"
|
||||||
GO_VERSION="1.4"
|
GO_VERSION="1.4"
|
||||||
@ -131,15 +132,27 @@ check_deps() {
|
|||||||
MISSING="${MISSING} golang(1.4)"
|
MISSING="${MISSING} golang(1.4)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_version "$(env git --version 2>/dev/null | sed 's/^.* \([0-9.]*\).*$/\1/')" "${GIT_VERSION}"
|
check_version "$(env git --version 2>/dev/null | sed -e 's/^.* \([0-9.\].*\).*$/\1/' -e 's/^\([0-9.\]*\).*/\1/g')" "${GIT_VERSION}"
|
||||||
if [ $? -ge 2 ]; then
|
if [ $? -ge 2 ]; then
|
||||||
MISSING="${MISSING} git"
|
MISSING="${MISSING} git"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_version "$(env gcc --version 2>/dev/null | sed 's/^.* \([0-9.]*\).*$/\1/' | head -1)" "${GCC_VERSION}"
|
case ${UNAME%% *} in
|
||||||
if [ $? -ge 2 ]; then
|
"Linux")
|
||||||
MISSING="${MISSING} build-essential"
|
check_version "$(env gcc --version 2>/dev/null | sed 's/^.* \([0-9.]*\).*$/\1/' | head -1)" "${GCC_VERSION}"
|
||||||
fi
|
if [ $? -ge 2 ]; then
|
||||||
|
MISSING="${MISSING} build-essential"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"Darwin")
|
||||||
|
check_version "$(env gcc --version 2>/dev/null | sed 's/^.* \([0-9.]*\).*$/\1/' | head -1)" "${CLANG_VERSION}"
|
||||||
|
if [ $? -ge 2 ]; then
|
||||||
|
MISSING="${MISSING} xcode-cli"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
"*")
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
check_version "$(env yasm --version 2>/dev/null | sed 's/^.* \([0-9.]*\).*$/\1/' | head -1)" "${YASM_VERSION}"
|
check_version "$(env yasm --version 2>/dev/null | sed 's/^.* \([0-9.]*\).*$/\1/' | head -1)" "${YASM_VERSION}"
|
||||||
if [ $? -ge 2 ]; then
|
if [ $? -ge 2 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user