Commit 3f46463f authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

removing shell scripts

parent a3281936
......@@ -141,47 +141,17 @@ h1(#directives). Directives
h1(#installation). Installation <a name="installation" href="#">&nbsp;</a>
You may use @build.sh@ script inside the project:
<pre>
# clone the project
git clone http://github.com/wandenberg/nginx-push-stream-module.git
NGINX_PUSH_STREAM_MODULE_PATH=$PWD/nginx-push-stream-module
cd nginx-push-stream-module
# build with 1.1.x, 1.0.x, 0.9.x, 0.8.x series
./build.sh master 1.1.15
cd build/nginx-1.1.15
# install and finish
sudo make install
# check
sudo /usr/local/nginx/sbin/nginx -v
nginx version: nginx/1.1.15
# test configuration
sudo /usr/local/nginx/sbin/nginx -c $NGINX_PUSH_STREAM_MODULE_PATH/misc/nginx.conf -t
the configuration file $NGINX_PUSH_STREAM_MODULE_PATH/misc/nginx.conf syntax is ok
configuration file $NGINX_PUSH_STREAM_MODULE_PATH/misc/nginx.conf test is successful
# run
sudo /usr/local/nginx/sbin/nginx -c $NGINX_PUSH_STREAM_MODULE_PATH/misc/nginx.conf
</pre>
Or you may do by yourself:
<pre>
# clone the project
git clone http://github.com/wandenberg/nginx-push-stream-module.git
NGINX_PUSH_STREAM_MODULE_PATH=$PWD/nginx-push-stream-module
# get desired nginx version (works with 1.1.x, 1.0.x, 0.9.x, 0.8.x series)
wget http://nginx.org/download/nginx-1.1.15.tar.gz
# get desired nginx version (works with 1.2.x, 1.1.x, 1.0.x, 0.9.x, 0.8.x series)
wget http://nginx.org/download/nginx-1.2.0.tar.gz
# unpack, configure and build
tar xzvf nginx-1.1.15.tar.gz
cd nginx-1.1.15
tar xzvf nginx-1.2.0.tar.gz
cd nginx-1.2.0
./configure --add-module=../nginx-push-stream-module
make
......@@ -190,7 +160,7 @@ Or you may do by yourself:
# check
sudo /usr/local/nginx/sbin/nginx -v
nginx version: nginx/1.1.15
nginx version: nginx/1.2.0
# test configuration
sudo /usr/local/nginx/sbin/nginx -c $NGINX_PUSH_STREAM_MODULE_PATH/misc/nginx.conf -t
......
#!/bin/bash
TAG="$1"
NGINX_VERSION="$2"
PREFIX="nginx-push-stream-module"
NGINX_URL="http://nginx.org/download"
CONFIGURE_OPTIONS="\
--with-http_stub_status_module \
--add-module=nginx-push-stream-module"
WGET="wget -c -N"
if [[ -z "$TAG" || -z "$NGINX_VERSION" ]]
then
echo "Usage: $0 <tag> <nginx_version>"
echo " $0 master 1.0.0"
echo " $0 master 0.9.7"
echo " $0 master 0.8.54"
exit 1
fi
(chmod 755 *sh && \
./pack.sh $TAG && \
cd build && \
$WGET $NGINX_URL/nginx-${NGINX_VERSION}.tar.gz && \
rm -rf nginx-${NGINX_VERSION} && \
tar xzvf nginx-${NGINX_VERSION}.tar.gz && \
cd nginx-$NGINX_VERSION && \
tar xzvf ../$PREFIX-$TAG.tar.gz && \
./configure $CONFIGURE_OPTIONS && \
make && \
echo "
##############################################################
Build generated: build/nginx-$NGINX_VERSION
Configure options used:
$CONFIGURE_OPTIONS
To finish the process:
cd build/nginx-$NGINX_VERSION
sudo make install") || \
(echo "There was a problem building the module" ; exit 1)
echo "##############################################################"
#!/bin/bash
TAG="$1"
PREFIX="nginx-push-stream-module"
if [[ -z "$TAG" ]]
then
echo "Usage: $0 <tag>"
echo " $0 master"
exit 1
fi
mkdir -p build
git archive --format=tar --prefix=$PREFIX/ $TAG src include config | gzip > build/$PREFIX-$TAG.tar.gz
echo "Package generated: build/$PREFIX-$TAG.tar.gz"
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