From b9842399a3e1a555e5fa796f63bb2ccd92b485f5 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 20 Sep 2016 00:13:15 -0600 Subject: [PATCH] Install sigil from github --- bin/compile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/compile b/bin/compile index 416e0be..245b758 100755 --- a/bin/compile +++ b/bin/compile @@ -9,6 +9,8 @@ NGINX_VERSION="1.8.1" NGINX_TARBALL="nginx-${NGINX_VERSION}.tar.gz" PCRE_VERSION="8.38" PCRE_TARBALL="pcre-${PCRE_VERSION}.tar.gz" +SIGIL_VERSION="0.4.0" +SIGIL_TARBALL="sigil_${SIGIL_VERSION}_Linux_x86_64.tgz" ZLIB_VERSION="1.2.8" ZLIB_TARBALL="zlib-${ZLIB_VERSION}.tar.gz" @@ -55,6 +57,15 @@ if [[ ! -d "${ZLIB_TARBALL%.tar.gz}" ]]; then tar xzf "${ZLIB_TARBALL}" && rm -rf "${ZLIB_TARBALL}" fi +if [[ ! -f "sigil" ]]; then + echo "-----> download and unzip sigil" + curl -sSL "https://github.com/gliderlabs/sigil/releases/download/v${SIGIL_VERSION}/${SIGIL_TARBALL}" -o "${SIGIL_TARBALL}" + tar xzf "${SIGIL_TARBALL}" && rm -rf "${SIGIL_TARBALL}" +fi + +mkdir -p $BUILD_DIR/sigil +cp -r sigil $BUILD_DIR/sigil/ + cd "nginx-${NGINX_VERSION}" if [[ ! -f "${CACHE_DIR}/bin/nginx" ]]; then echo "-----> compile static nginx"