mirror of
https://github.com/simon987/ngx_http_js_challenge_module.git
synced 2025-12-15 07:39:03 +00:00
Initial commit (hello world)
This commit is contained in:
14
build.sh
Normal file
14
build.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
NGINX_PATH=/home/simon/Downloads/nginx-1.16.1/
|
||||
|
||||
MODULE_PATH=$(pwd)/
|
||||
CONFIG_ARGS=$(nginx -V 2>&1 | tail -n 1 | cut -c 21- | sed 's/--add-dynamic-module=.*//g')
|
||||
|
||||
CONFIG_ARGS="${CONFIG_ARGS} --add-dynamic-module=${MODULE_PATH}"
|
||||
|
||||
echo $CONFIG_ARGS
|
||||
|
||||
(
|
||||
cd ${NGINX_PATH}
|
||||
bash -c "./configure ${CONFIG_ARGS}"
|
||||
make modules
|
||||
)
|
||||
Reference in New Issue
Block a user