Mercurial > hg > nginx-quic
annotate misc/GNUmakefile @ 4345:1f436f0a95b3 stable-1.0
Version bump.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 13 Dec 2011 16:59:41 +0000 |
parents | ac0a3dc948c3 |
children | dc7549aa8556 |
rev | line source |
---|---|
681 | 1 |
2725 | 2 VER = $(shell grep 'define NGINX_VERSION' src/core/nginx.h \ |
3 | sed -e 's/^.*\"\(.*\)\"/\1/') | |
4 NGINX = nginx-$(VER) | |
5 TEMP = tmp | |
4250 | 6 REPO = svn://svn.nginx.com |
2725 | 7 |
8 OBJS = objs.msvc8 | |
3869
ee223ca91129
copy OpenSSL-0.9.8r LICENSE for nginx/Windows zip
Igor Sysoev <igor@sysoev.ru>
parents:
3849
diff
changeset
|
9 OPENSSL = openssl-0.9.8r |
2725 | 10 ZLIB = zlib-1.2.3 |
2871
c7fe4b9118d2
fix "make zip", the bug has been introduced in r2841
Igor Sysoev <igor@sysoev.ru>
parents:
2734
diff
changeset
|
11 PCRE = pcre-7.9 |
681 | 12 |
13 | |
14 release: | |
15 rm -rf $(TEMP) | |
16 | |
17 svn export -rHEAD . $(TEMP)/$(NGINX) | |
18 | |
19 mv $(TEMP)/$(NGINX)/auto/configure $(TEMP)/$(NGINX) | |
20 | |
21 # delete incomplete sources | |
22 rm $(TEMP)/$(NGINX)/src/event/ngx_event_acceptex.c | |
23 rm $(TEMP)/$(NGINX)/src/event/ngx_event_connectex.c | |
24 rm $(TEMP)/$(NGINX)/src/event/modules/ngx_iocp_module.* | |
25 rm -r $(TEMP)/$(NGINX)/src/os/win32 | |
26 | |
27 rm -r $(TEMP)/$(NGINX)/src/mysql | |
28 | |
29 rm $(TEMP)/$(NGINX)/src/http/modules/ngx_http_status_module.c | |
30 | |
31 mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX) | |
32 mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX) | |
33 mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX) | |
3801
569716d0e447
add man page in release tarball and fix man building procedure
Igor Sysoev <igor@sysoev.ru>
parents:
3717
diff
changeset
|
34 mv $(TEMP)/$(NGINX)/docs/man $(TEMP)/$(NGINX) |
681 | 35 |
36 $(MAKE) -f docs/GNUmakefile changes | |
37 | |
38 rm -r $(TEMP)/$(NGINX)/docs | |
39 rm -r $(TEMP)/$(NGINX)/misc | |
40 | |
704
58bd27d72519
fix bug introduced with snapshot support
Igor Sysoev <igor@sysoev.ru>
parents:
701
diff
changeset
|
41 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
|
42 |
701 | 43 |
4250 | 44 RELEASE: |
45 test -d $(TEMP) || mkdir -p $(TEMP) | |
46 | |
47 echo "nginx-$(VER)-RELEASE" > $(TEMP)/message | |
48 svn ci -F $(TEMP)/message | |
49 | |
50 echo "release-$(VER) tag" > $(TEMP)/message | |
51 svn copy $(REPO)/nginx/branches/stable-1.0 \ | |
52 $(REPO)/nginx/tags/release-$(VER) \ | |
53 -F $(TEMP)/message | |
54 | |
55 svn up | |
56 | |
57 $(MAKE) release | |
58 | |
59 | |
701 | 60 snapshot: |
61 rm -rf $(TEMP) | |
62 | |
63 mkdir -p $(TEMP) | |
64 svn export . $(TEMP)/$(NGINX) | |
65 | |
66 mv $(TEMP)/$(NGINX)/auto/configure $(TEMP)/$(NGINX) | |
67 | |
68 # delete incomplete sources | |
69 rm $(TEMP)/$(NGINX)/src/event/ngx_event_acceptex.c | |
70 rm $(TEMP)/$(NGINX)/src/event/ngx_event_connectex.c | |
71 rm $(TEMP)/$(NGINX)/src/event/modules/ngx_iocp_module.* | |
72 rm -r $(TEMP)/$(NGINX)/src/os/win32 | |
73 | |
74 rm -r $(TEMP)/$(NGINX)/src/mysql | |
75 | |
76 rm $(TEMP)/$(NGINX)/src/http/modules/ngx_http_status_module.c | |
77 | |
78 mv $(TEMP)/$(NGINX)/docs/text/LICENSE $(TEMP)/$(NGINX) | |
79 mv $(TEMP)/$(NGINX)/docs/text/README $(TEMP)/$(NGINX) | |
80 mv $(TEMP)/$(NGINX)/docs/html $(TEMP)/$(NGINX) | |
3801
569716d0e447
add man page in release tarball and fix man building procedure
Igor Sysoev <igor@sysoev.ru>
parents:
3717
diff
changeset
|
81 mv $(TEMP)/$(NGINX)/docs/man $(TEMP)/$(NGINX) |
701 | 82 |
83 $(MAKE) -f docs/GNUmakefile changes | |
84 | |
85 rm -r $(TEMP)/$(NGINX)/docs | |
86 rm -r $(TEMP)/$(NGINX)/misc | |
87 | |
681 | 88 tar -c -z -f $(NGINX).tar.gz --directory $(TEMP) $(NGINX) |
89 | |
90 | |
2725 | 91 zip: |
92 rm -rf $(TEMP) | |
93 rm -f $(NGINX).zip | |
94 | |
95 mkdir -p $(TEMP)/$(NGINX)/docs | |
96 mkdir -p $(TEMP)/$(NGINX)/logs | |
97 mkdir -p $(TEMP)/$(NGINX)/temp | |
98 | |
99 svn export -rHEAD conf $(TEMP)/$(NGINX)/conf/ | |
100 perl -pi -e 's/$$/\r/' $(TEMP)/$(NGINX)/conf/* | |
101 | |
102 svn export -rHEAD contrib $(TEMP)/$(NGINX)/contrib/ | |
103 svn export -rHEAD docs/html $(TEMP)/$(NGINX)/html/ | |
104 | |
105 $(MAKE) -f docs/GNUmakefile changes | |
106 | |
107 cp -p $(OBJS)/nginx.exe $(TEMP)/$(NGINX) | |
108 | |
109 cp -p docs/text/LICENSE $(TEMP)/$(NGINX)/docs/ | |
110 cp -p docs/text/README $(TEMP)/$(NGINX)/docs/ | |
111 mv $(TEMP)/$(NGINX)/CHANGES* $(TEMP)/$(NGINX)/docs/ | |
112 | |
113 cp -p $(OBJS)/lib/$(OPENSSL)/LICENSE \ | |
114 $(TEMP)/$(NGINX)/docs/OpenSSL.LICENSE | |
115 | |
2871
c7fe4b9118d2
fix "make zip", the bug has been introduced in r2841
Igor Sysoev <igor@sysoev.ru>
parents:
2734
diff
changeset
|
116 cp -p $(OBJS)/lib/$(PCRE)/LICENCE \ |
c7fe4b9118d2
fix "make zip", the bug has been introduced in r2841
Igor Sysoev <igor@sysoev.ru>
parents:
2734
diff
changeset
|
117 $(TEMP)/$(NGINX)/docs/PCRE.LICENCE |
2725 | 118 |
119 perl -ne 'print if /^ \(C\) 1995-2004/ .. /^ jloup\@gzip.org/' \ | |
120 $(OBJS)/lib/$(ZLIB)/README \ | |
121 > $(TEMP)/$(NGINX)/docs/zlib.LICENSE | |
122 | |
123 touch -r $(OBJS)/lib/$(ZLIB)/README \ | |
124 $(TEMP)/$(NGINX)/docs/zlib.LICENSE | |
125 | |
126 cd $(TEMP) && zip -r ../$(NGINX).zip $(NGINX) | |
127 | |
128 | |
129 icons: src/os/win32/nginx.ico | |
681 | 130 |
2734 | 131 # 48x48, 32x32 and 16x16 icons |
681 | 132 |
2734 | 133 src/os/win32/nginx.ico: src/os/win32/nginx_icon48.xpm \ |
134 src/os/win32/nginx_icon32.xpm \ | |
681 | 135 src/os/win32/nginx_icon16.xpm |
136 | |
137 test -d $(TEMP) || mkdir $(TEMP) | |
138 | |
2734 | 139 xpmtoppm --alphaout=$(TEMP)/nginx48.pbm \ |
140 src/os/win32/nginx_icon48.xpm > $(TEMP)/nginx48.ppm | |
141 | |
681 | 142 xpmtoppm --alphaout=$(TEMP)/nginx32.pbm \ |
143 src/os/win32/nginx_icon32.xpm > $(TEMP)/nginx32.ppm | |
144 | |
145 xpmtoppm --alphaout=$(TEMP)/nginx16.pbm \ | |
146 src/os/win32/nginx_icon16.xpm > $(TEMP)/nginx16.ppm | |
147 | |
148 ppmtowinicon -output src/os/win32/nginx.ico -andpgms \ | |
2734 | 149 $(TEMP)/nginx48.ppm $(TEMP)/nginx48.pbm \ |
681 | 150 $(TEMP)/nginx32.ppm $(TEMP)/nginx32.pbm \ |
151 $(TEMP)/nginx16.ppm $(TEMP)/nginx16.pbm |