Mercurial > hg > nginx
annotate misc/GNUmakefile @ 1271:2b3e6aede7da
add comment
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 06 Jul 2007 11:28:20 +0000 |
parents | 8d77ff798f5c |
children | 80901499140d |
rev | line source |
---|---|
681 | 1 |
775 | 2 VER= $(shell grep 'define NGINX_VERSION' src/core/nginx.h \ |
3 | sed -e 's/^.*\"\(.*\)\"/\1/') | |
681 | 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 | |
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 | |
704
58bd27d72519
fix bug introduced with snapshot support
Igor Sysoev <igor@sysoev.ru>
parents:
701
diff
changeset
|
36 tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX) |
58bd27d72519
fix bug introduced with snapshot support
Igor Sysoev <igor@sysoev.ru>
parents:
701
diff
changeset
|
37 |
701 | 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 | |
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 | |
681 | 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 |