Igor Sysoev | da173ab | 2006-08-30 10:39:17 +0000 | [diff] [blame] | 1 | |
Igor Sysoev | 8a444aa | 2006-10-12 19:55:15 +0000 | [diff] [blame] | 2 | VER= $(shell grep 'define NGINX_VERSION' src/core/nginx.h \ |
| 3 | | sed -e 's/^.*\"\(.*\)\"/\1/') |
Igor Sysoev | da173ab | 2006-08-30 10:39:17 +0000 | [diff] [blame] | 4 | NGINX= nginx-$(VER) |
| 5 | TEMP= tmp |
| 6 | |
| 7 | |
| 8 | release: |
| 9 | rm -rf $(TEMP) |
| 10 | |
| 11 | svn export -rHEAD . $(TEMP)/$(NGINX) |
| 12 | |
| 13 | mv $(TEMP)/$(NGINX)/auto/configure $(TEMP)/$(NGINX) |
| 14 | |
| 15 | # delete incomplete sources |
| 16 | rm $(TEMP)/$(NGINX)/src/event/ngx_event_acceptex.c |
| 17 | rm $(TEMP)/$(NGINX)/src/event/ngx_event_connectex.c |
| 18 | rm $(TEMP)/$(NGINX)/src/event/modules/ngx_iocp_module.* |
| 19 | rm -r $(TEMP)/$(NGINX)/src/os/win32 |
| 20 | |
Igor Sysoev | da173ab | 2006-08-30 10:39:17 +0000 | [diff] [blame] | 21 | rm -r $(TEMP)/$(NGINX)/src/mysql |
| 22 | |
| 23 | rm $(TEMP)/$(NGINX)/src/http/modules/ngx_http_status_module.c |
| 24 | |
| 25 | mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX) |
| 26 | mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX) |
| 27 | mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX) |
| 28 | |
| 29 | $(MAKE) -f docs/GNUmakefile changes |
| 30 | |
| 31 | rm -r $(TEMP)/$(NGINX)/docs |
| 32 | rm -r $(TEMP)/$(NGINX)/misc |
| 33 | |
Igor Sysoev | 648cb68 | 2006-09-18 12:42:53 +0000 | [diff] [blame] | 34 | tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX) |
| 35 | |
Igor Sysoev | 993b9da | 2006-09-18 12:26:31 +0000 | [diff] [blame] | 36 | |
| 37 | snapshot: |
| 38 | rm -rf $(TEMP) |
| 39 | |
| 40 | mkdir -p $(TEMP) |
| 41 | svn export . $(TEMP)/$(NGINX) |
| 42 | |
| 43 | mv $(TEMP)/$(NGINX)/auto/configure $(TEMP)/$(NGINX) |
| 44 | |
| 45 | # delete incomplete sources |
| 46 | rm $(TEMP)/$(NGINX)/src/event/ngx_event_acceptex.c |
| 47 | rm $(TEMP)/$(NGINX)/src/event/ngx_event_connectex.c |
| 48 | rm $(TEMP)/$(NGINX)/src/event/modules/ngx_iocp_module.* |
| 49 | rm -r $(TEMP)/$(NGINX)/src/os/win32 |
| 50 | |
Igor Sysoev | 993b9da | 2006-09-18 12:26:31 +0000 | [diff] [blame] | 51 | rm -r $(TEMP)/$(NGINX)/src/mysql |
| 52 | |
| 53 | rm $(TEMP)/$(NGINX)/src/http/modules/ngx_http_status_module.c |
| 54 | |
| 55 | mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX) |
| 56 | mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX) |
| 57 | mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX) |
| 58 | |
| 59 | $(MAKE) -f docs/GNUmakefile changes |
| 60 | |
| 61 | rm -r $(TEMP)/$(NGINX)/docs |
| 62 | rm -r $(TEMP)/$(NGINX)/misc |
| 63 | |
Igor Sysoev | da173ab | 2006-08-30 10:39:17 +0000 | [diff] [blame] | 64 | tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX) |
| 65 | |
| 66 | |
| 67 | icons: src/os/win32/nginx.ico src/os/win32/nginx_tray.ico |
| 68 | |
| 69 | # 32x32 and 16x16 icons |
| 70 | |
| 71 | src/os/win32/nginx.ico: src/os/win32/nginx_icon32.xpm \ |
| 72 | src/os/win32/nginx_icon16.xpm |
| 73 | |
| 74 | test -d $(TEMP) || mkdir $(TEMP) |
| 75 | |
| 76 | xpmtoppm --alphaout=$(TEMP)/nginx32.pbm \ |
| 77 | src/os/win32/nginx_icon32.xpm > $(TEMP)/nginx32.ppm |
| 78 | |
| 79 | xpmtoppm --alphaout=$(TEMP)/nginx16.pbm \ |
| 80 | src/os/win32/nginx_icon16.xpm > $(TEMP)/nginx16.ppm |
| 81 | |
| 82 | ppmtowinicon -output src/os/win32/nginx.ico -andpgms \ |
| 83 | $(TEMP)/nginx32.ppm $(TEMP)/nginx32.pbm \ |
| 84 | $(TEMP)/nginx16.ppm $(TEMP)/nginx16.pbm |
| 85 | |
| 86 | # tray icon |
| 87 | |
| 88 | src/os/win32/nginx_tray.ico: src/os/win32/nginx_tray.xpm |
| 89 | |
| 90 | test -d $(TEMP) || mkdir $(TEMP) |
| 91 | |
| 92 | xpmtoppm --alphaout=$(TEMP)/nginx_tray.pbm \ |
| 93 | src/os/win32/nginx_tray.xpm > $(TEMP)/nginx_tray.ppm |
| 94 | |
| 95 | ppmtowinicon -output src/os/win32/nginx_tray.ico -andpgms \ |
| 96 | $(TEMP)/nginx_tray.ppm $(TEMP)/nginx_tray.pbm |