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