Mercurial > hg > nginx
annotate misc/GNUmakefile @ 9230:e14debe728b0 radix_with_skip
Closed the radix_with_skip branch.
The radix_with_skip branch is an archive of an experiment did in 2008,
and it is no longer relevant. It is now closed to avoid cluttering of
the branches list. If needed, closed branches still can be seen with
"hg branches --closed".
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 23 Mar 2024 04:30:45 +0300 |
parents | 72ca7922d30d |
children | d43d73277c5c |
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 -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 | |
704
58bd27d72519
fix bug introduced with snapshot support
Igor Sysoev <igor@sysoev.ru>
parents:
701
diff
changeset
|
34 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
|
35 |
701 | 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 | |
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 | |
681 | 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 |