summaryrefslogtreecommitdiffhomepage
path: root/misc
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-20 06:08:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-20 06:08:47 +0000
commitbd91999ea577266b0d899ea206cdaa8d19f486b2 (patch)
tree6936e209210662a34db4f9b9c63d03b95e7d9956 /misc
parentb533e9825295a0855d78912dae9d8f1180df0900 (diff)
downloadnginx-bd91999ea577266b0d899ea206cdaa8d19f486b2.tar.gz
nginx-bd91999ea577266b0d899ea206cdaa8d19f486b2.tar.bz2
Win32 master/workers model
Diffstat (limited to 'misc')
-rw-r--r--misc/GNUmakefile65
1 files changed, 48 insertions, 17 deletions
diff --git a/misc/GNUmakefile b/misc/GNUmakefile
index b863d67dc..99a62d5e8 100644
--- a/misc/GNUmakefile
+++ b/misc/GNUmakefile
@@ -1,8 +1,13 @@
-VER= $(shell grep 'define NGINX_VERSION' src/core/nginx.h \
- | sed -e 's/^.*\"\(.*\)\"/\1/')
-NGINX= nginx-$(VER)
-TEMP= tmp
+VER = $(shell grep 'define NGINX_VERSION' src/core/nginx.h \
+ | sed -e 's/^.*\"\(.*\)\"/\1/')
+NGINX = nginx-$(VER)
+TEMP = tmp
+
+OBJS = objs.msvc8
+OPENSSL = openssl-0.9.8k
+ZLIB = zlib-1.2.3
+PCRE = pcre-4.4
release:
@@ -64,7 +69,45 @@ snapshot:
tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX)
-icons: src/os/win32/nginx.ico src/os/win32/nginx_tray.ico
+zip:
+ rm -rf $(TEMP)
+ rm -f $(NGINX).zip
+
+ mkdir -p $(TEMP)/$(NGINX)/docs
+ mkdir -p $(TEMP)/$(NGINX)/logs
+ mkdir -p $(TEMP)/$(NGINX)/temp
+
+ svn export -rHEAD conf $(TEMP)/$(NGINX)/conf/
+ perl -pi -e 's/$$/\r/' $(TEMP)/$(NGINX)/conf/*
+
+ svn export -rHEAD contrib $(TEMP)/$(NGINX)/contrib/
+ svn export -rHEAD docs/html $(TEMP)/$(NGINX)/html/
+
+ $(MAKE) -f docs/GNUmakefile changes
+
+ cp -p $(OBJS)/nginx.exe $(TEMP)/$(NGINX)
+
+ cp -p docs/text/LICENSE $(TEMP)/$(NGINX)/docs/
+ cp -p docs/text/README $(TEMP)/$(NGINX)/docs/
+ mv $(TEMP)/$(NGINX)/CHANGES* $(TEMP)/$(NGINX)/docs/
+
+ cp -p $(OBJS)/lib/$(OPENSSL)/LICENSE \
+ $(TEMP)/$(NGINX)/docs/OpenSSL.LICENSE
+
+ cp -p $(OBJS)/lib/$(PCRE)/COPYING \
+ $(TEMP)/$(NGINX)/docs/PCRE.COPYING
+
+ perl -ne 'print if /^ \(C\) 1995-2004/ .. /^ jloup\@gzip.org/' \
+ $(OBJS)/lib/$(ZLIB)/README \
+ > $(TEMP)/$(NGINX)/docs/zlib.LICENSE
+
+ touch -r $(OBJS)/lib/$(ZLIB)/README \
+ $(TEMP)/$(NGINX)/docs/zlib.LICENSE
+
+ cd $(TEMP) && zip -r ../$(NGINX).zip $(NGINX)
+
+
+icons: src/os/win32/nginx.ico
# 32x32 and 16x16 icons
@@ -82,15 +125,3 @@ src/os/win32/nginx.ico: src/os/win32/nginx_icon32.xpm \
ppmtowinicon -output src/os/win32/nginx.ico -andpgms \
$(TEMP)/nginx32.ppm $(TEMP)/nginx32.pbm \
$(TEMP)/nginx16.ppm $(TEMP)/nginx16.pbm
-
-# tray icon
-
-src/os/win32/nginx_tray.ico: src/os/win32/nginx_tray.xpm
-
- test -d $(TEMP) || mkdir $(TEMP)
-
- xpmtoppm --alphaout=$(TEMP)/nginx_tray.pbm \
- src/os/win32/nginx_tray.xpm > $(TEMP)/nginx_tray.ppm
-
- ppmtowinicon -output src/os/win32/nginx_tray.ico -andpgms \
- $(TEMP)/nginx_tray.ppm $(TEMP)/nginx_tray.pbm