Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nginx out-of-tree build
#!/bin/bash
# Helper script for development build of Nginx
set -e
NGINX_SRC=/home/dcoles/src/nginx
BASEDIR="$(dirname "$(realpath "$0")")"
cd "${BASEDIR}"
mkdir -p build
ln -s -f "${NGINX_SRC}"/{auto,conf,docs,src} build
cd build
if [[ ! -e Makefile ]]; then
auto/configure --prefix="${BASEDIR}"/build/r --with-debug \
--add-module="${BASEDIR}"/nginx/cdn_access \
--add-module="${BASEDIR}"/nginx/cdn_gslb
fi
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment