File tree 3 files changed +24
-2
lines changed 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ openssl-*/*
11
11
libressl- * /*
12
12
pcre- * /*
13
13
zlib- * /*
14
+ conf /*
15
+ contrib /*
16
+ docs /*
17
+ html /*
18
+ logs /*
19
+ temp /*
14
20
15
21
# Prerequisites
16
22
* .d
Original file line number Diff line number Diff line change 11
11
esac
12
12
done
13
13
14
+ # create dir for docs
15
+ mkdir -p docs
16
+
14
17
# init
15
18
machine_str=" $( gcc -dumpmachine | cut -d' -' -f1) "
16
19
@@ -58,6 +61,18 @@ tar -xf "${PCRE}.tar.bz2"
58
61
wget -c -nv " https://www.openssl.org/source/${OPENSSL} .tar.gz"
59
62
tar -xf " ${OPENSSL} .tar.gz"
60
63
64
+ # make changes
65
+ make -f docs/GNUmakefile changes
66
+ mv -f tmp/* /CHANGES* ../docs/
67
+
68
+ # copy docs and licenses
69
+ cp -f docs/text/LICENSE ../docs/
70
+ cp -f docs/text/README ../docs/
71
+ cp -pf " ${OPENSSL} /LICENSE" ' ../docs/OpenSSL.LICENSE'
72
+ cp -pf " ${PCRE} /LICENCE" ' ../docs/PCRE.LICENCE'
73
+ sed -ne ' /^ (C) 1995-20/,/^ jloup@gzip\.org/p' " ${ZLIB} /README" > ' ../docs/zlib.LICENSE'
74
+ touch -r " ${ZLIB} /README" ' ../docs/zlib.LICENSE'
75
+
61
76
# configure
62
77
configure_args=(
63
78
--sbin-path=nginx.exe \
@@ -94,7 +109,7 @@ configure_args=(
94
109
--prefix=
95
110
)
96
111
echo ${configure_args[@]}
97
- auto/configure ${configure_args[@]} --with-cc-opt=' -O2 -fno-strict-aliasing -pipe'
112
+ auto/configure ${configure_args[@]} --with-cc-opt=' -s - O2 -fno-strict-aliasing -pipe'
98
113
99
114
# build
100
115
make -j$( nproc)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
cp -rf nginx/conf .
3
3
cp -rf nginx/docs/html .
4
+ cp -rf nginx/contrib .
4
5
rm -rf temp logs
5
6
mkdir -p temp
6
7
mkdir -p logs
7
- 7z a -mx9 nginx-bin.7z nginx-* .exe conf html temp logs
8
+ 7z a -mx9 nginx-bin.7z nginx-* .exe contrib docs conf html temp logs
You can’t perform that action at this time.
0 commit comments