build example and wget options

parent ffda40cc
...@@ -7,6 +7,7 @@ PREFIX="nginx-push-stream-module" ...@@ -7,6 +7,7 @@ PREFIX="nginx-push-stream-module"
if [[ -z "$TAG" || -z "$NGINX_VERSION" ]] if [[ -z "$TAG" || -z "$NGINX_VERSION" ]]
then then
echo "Usage: $0 <tag> <nginx_version>" echo "Usage: $0 <tag> <nginx_version>"
echo "Example: $0 master 0.7.67"
exit 1 exit 1
fi fi
...@@ -14,13 +15,14 @@ CONFIGURE_OPTIONS="\ ...@@ -14,13 +15,14 @@ CONFIGURE_OPTIONS="\
--with-http_stub_status_module \ --with-http_stub_status_module \
--add-module=nginx-push-stream-module" --add-module=nginx-push-stream-module"
(./pack.sh $TAG && \ (chmod 755 *sh && \
./pack.sh $TAG && \
cd build && \ cd build && \
rm -rf nginx-${NGINX_VERSION}* && \ wget -N -c http://sysoev.ru/nginx/nginx-${NGINX_VERSION}.tar.gz && \
wget http://sysoev.ru/nginx/nginx-${NGINX_VERSION}.tar.gz && \ rm -rf nginx-${NGINX_VERSION} && \
tar xzvf nginx-${NGINX_VERSION}.tar.gz && \ tar -xzvf nginx-${NGINX_VERSION}.tar.gz && \
cd nginx-$NGINX_VERSION && \ cd nginx-$NGINX_VERSION && \
tar xzvf ../$PREFIX-$TAG.tar.gz && \ tar -xzvf ../$PREFIX-$TAG.tar.gz && \
./configure $CONFIGURE_OPTIONS && \ ./configure $CONFIGURE_OPTIONS && \
make && \ make && \
echo " echo "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment