Merging r4179, r4182, r4212:

Adding RELEASE procedure in GNUmakefile.
This commit is contained in:
Igor Sysoev 2011-11-01 14:00:04 +00:00
parent 29f1ce37cb
commit 60fc9be85d
1 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,7 @@ VER = $(shell grep 'define NGINX_VERSION' src/core/nginx.h \
| sed -e 's/^.*\"\(.*\)\"/\1/')
NGINX = nginx-$(VER)
TEMP = tmp
REPO = svn://svn.nginx.com
OBJS = objs.msvc8
OPENSSL = openssl-0.9.8r
@ -40,6 +41,22 @@ release:
tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX)
RELEASE:
test -d $(TEMP) || mkdir -p $(TEMP)
echo "nginx-$(VER)-RELEASE" > $(TEMP)/message
svn ci -F $(TEMP)/message
echo "release-$(VER) tag" > $(TEMP)/message
svn copy $(REPO)/nginx/branches/stable-1.0 \
$(REPO)/nginx/tags/release-$(VER) \
-F $(TEMP)/message
svn up
$(MAKE) release
snapshot:
rm -rf $(TEMP)