#!/usr/bin/env bash set -x set -e if [ -z "$OPENSSL_VERSION" ]; then OPENSSL_VERSION=$(ruby -r "./ext/tiny_tds/extconsts.rb" -e "puts OPENSSL_VERSION") fi wget https://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz tar -xzf openssl-$OPENSSL_VERSION.tar.gz cd openssl-$OPENSSL_VERSION ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl make make install cd .. rm -rf openssl-$OPENSSL_VERSION rm openssl-$OPENSSL_VERSION.tar.gz