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