Skip to content

Instantly share code, notes, and snippets.

@stirch
stirch / nginx-custom-build.sh
Created April 11, 2016 09:24
Build Ubuntu or Debian packages for nginx with custom patches, configs, and name suffixes in one command
#!/bin/bash
# Author: Alexander Rodin <[email protected]>
# License: MIT
BUILD_DIR=build
while getopts "hp:s:r:b:o:c:n" opt; do
case $opt in
h)
echo "Usage: $0 [options]"