From 0d322d34e732e015a65136260a8714b3dc5f0985 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Sat, 21 Sep 2024 14:57:23 +0700 Subject: [PATCH] nginx_build_script: update README --- nginx_build_script/README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/nginx_build_script/README.md b/nginx_build_script/README.md index a43b5e3..31444e5 100644 --- a/nginx_build_script/README.md +++ b/nginx_build_script/README.md @@ -22,6 +22,7 @@ while [ ${#} -gt 0 ]; do --install | -i ) INSTALL=true ;; # Install Nginx --ssl=* ) SSL_LIB="${1#*=}" + SSL_LIB="${SSL_LIB,,}" case $SSL_LIB in # Re-define SSL_LIB "quictls") SSL_LIB="quictls" ;; "boringssl") SSL_LIB="boringssl" ;; @@ -36,8 +37,24 @@ while [ ${#} -gt 0 ]; do ;; esac ;; + --type=* ) + BUILD_TYPE="${1#*=}" + BUILD_TYPE="${BUILD_TYPE,,}" + case $BUILD_TYPE in + "nginx") BUILD_TYPE="nginx" ;; + "freenginx") BUILD_TYPE="freenginx" ;; + "") + echo "ERROR : --type= is empty!" + exit 1 + ;; + *) + echo "ERROR : Vaild values for --type are -> nginx, freenginx" + exit 1 + ;; + esac + ;; --nginx-tag=* ) - NGINX_TAG="${1#*=}" # Specify Nginx Mercurial Tag + NGINX_TAG="${1#*=}" # Specify Nginx/freenginx Tag case $NGINX_TAG in "") echo "ERROR: --nginx-tag= is empty!" @@ -52,7 +69,6 @@ while [ ${#} -gt 0 ]; do esac shift done - ``` #### Note :