mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-22 04:10:48 +00:00
BUILD: scripts/build-ssl.sh: use "uname" instead of ${TRAVIS_OS_NAME}
it is also useful for local builds, when ${TRAVIS_OS_NAME} is not set
This commit is contained in:
parent
1f555daeb5
commit
47e09dd034
@ -28,11 +28,14 @@ build_openssl_osx () {
|
||||
build_openssl () {
|
||||
if [ "$(cat ${HOME}/opt/.openssl-version)" != "${OPENSSL_VERSION}" ]; then
|
||||
tar zxf "download-cache/openssl-${OPENSSL_VERSION}.tar.gz"
|
||||
if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
|
||||
build_openssl_osx
|
||||
elif [ "${TRAVIS_OS_NAME}" = "linux" ]; then
|
||||
build_openssl_linux
|
||||
fi
|
||||
case `uname` in
|
||||
'Darwin')
|
||||
build_openssl_osx
|
||||
;;
|
||||
'Linux')
|
||||
build_openssl_linux
|
||||
;;
|
||||
esac
|
||||
echo "${OPENSSL_VERSION}" > "${HOME}/opt/.openssl-version"
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user