File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed
Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ openssl-*/*
1111libressl- * /*
1212pcre- * /*
1313zlib- * /*
14+ conf /*
15+ contrib /*
16+ docs /*
17+ html /*
18+ logs /*
19+ temp /*
1420
1521# Prerequisites
1622* .d
Original file line number Diff line number Diff line change 1111 esac
1212done
1313
14+ # create dir for docs
15+ mkdir -p docs
16+
1417# init
1518machine_str=" $( gcc -dumpmachine | cut -d' -' -f1) "
1619
@@ -58,6 +61,18 @@ tar -xf "${PCRE}.tar.bz2"
5861wget -c -nv " https://www.openssl.org/source/${OPENSSL} .tar.gz"
5962tar -xf " ${OPENSSL} .tar.gz"
6063
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+
6176# configure
6277configure_args=(
6378 --sbin-path=nginx.exe \
@@ -94,7 +109,7 @@ configure_args=(
94109 --prefix=
95110)
96111echo ${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'
98113
99114# build
100115make -j$( nproc)
Original file line number Diff line number Diff line change 11#! /bin/bash
22cp -rf nginx/conf .
33cp -rf nginx/docs/html .
4+ cp -rf nginx/contrib .
45rm -rf temp logs
56mkdir -p temp
67mkdir -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