Skip to content

Instantly share code, notes, and snippets.

@fjmk
fjmk / nginx-custom-build.sh
Created March 25, 2016 22:19
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]"