diff --git a/scripts/build.sh b/scripts/build.sh index 358e13b77ea86d8d45f3ad7ae68dfc3eeec07753..98ed2b6fc7087bc98e2c79d1358f4dfc596852b7 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,12 +1,25 @@ #!/usr/bin/env bash +# Log when the build occurred. date +# Capture our starting point for easier navigation. OG_DIR=$(pwd) export OG_DIR - echo "$OG_DIR" -ls -la "$OG_DIR" -ls -la "$OG_DIR/../." -ls -la ~/ +# Organization +mkdir "$OG_DIR/src" + +# Common directories. +OPENSSL_DIR="$OG_DIR/src/openssl" +export OPENSSL_DIR + +# Dependency: OpenSSL +echo "Checking out OpenSSL" +git clone https://github.com/openssl/openssl.git -b "$OPENSSL_TAG" "$OPENSSL_DIR" +cd "$OPENSSL_DIR" || exit +./Configure + +# Dependency: ngx_brotli +# Dependency: nginx-ct