Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removing shell scripts

  • Loading branch information...
commit 3f46463fa58e154f6a94113a35ab4b359c042f95 1 parent a328193
@wandenberg authored
Showing with 5 additions and 95 deletions.
  1. +5 −35 README.textile
  2. +0 −43 build.sh
  3. +0 −17 pack.sh
View
40 README.textile
@@ -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
View
43 build.sh
@@ -1,43 +0,0 @@
-#!/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 "##############################################################"
View
17 pack.sh
@@ -1,17 +0,0 @@
-#!/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"
Please sign in to comment.
Something went wrong with that request. Please try again.