0
|
1
|
|
2 # Copyright (C) Igor Sysoev
|
|
3
|
|
4
|
18
|
5 cat << END >> $NGX_MAKEFILE
|
16
|
6
|
42
|
7 install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext}
|
44
|
8 test -d '$NGX_PREFIX' || mkdir -p '$NGX_PREFIX'
|
0
|
9
|
44
|
10 test -d '`dirname "$NGX_SBIN_PATH"`' \
|
|
11 || mkdir -p '`dirname "$NGX_SBIN_PATH"`'
|
|
12 test ! -f '$NGX_SBIN_PATH' || mv '$NGX_SBIN_PATH' '$NGX_SBIN_PATH.old'
|
|
13 cp $NGX_OBJS/nginx '$NGX_SBIN_PATH'
|
0
|
14
|
44
|
15 test -d '`dirname "$NGX_CONF_PATH"`' \
|
|
16 || mkdir -p '`dirname "$NGX_CONF_PATH"`'
|
0
|
17
|
44
|
18 cp conf/koi-win '`dirname "$NGX_CONF_PATH"`'
|
0
|
19
|
44
|
20 test -f '`dirname "$NGX_CONF_PATH"`/mime.types' || \
|
|
21 cp conf/mime.types '`dirname "$NGX_CONF_PATH"`/mime.types'
|
|
22 cp conf/mime.types '`dirname "$NGX_CONF_PATH"`/mime.types.default'
|
0
|
23
|
44
|
24 test -f '$NGX_CONF_PATH' || cp conf/nginx.conf '$NGX_CONF_PATH'
|
|
25 cp conf/nginx.conf '`dirname "$NGX_CONF_PATH"`/nginx.conf.default'
|
0
|
26
|
44
|
27 test -d '`dirname "$NGX_PID_PATH"`' \
|
|
28 || mkdir -p '`dirname "$NGX_PID_PATH"`'
|
0
|
29
|
44
|
30 test -d '`dirname "$NGX_HTTP_LOG_PATH"`' || \
|
|
31 mkdir -p '`dirname "$NGX_HTTP_LOG_PATH"`'
|
0
|
32
|
44
|
33 test -d '$NGX_PREFIX/html' || cp -r html '$NGX_PREFIX'
|
0
|
34 END
|
|
35
|
|
36
|
18
|
37 if test -n "$NGX_ERROR_LOG_PATH"; then
|
|
38 cat << END >> $NGX_MAKEFILE
|
0
|
39
|
44
|
40 test -d '`dirname "$NGX_ERROR_LOG_PATH"`' || \
|
|
41 mkdir -p '`dirname "$NGX_ERROR_LOG_PATH"`'
|
0
|
42 END
|
|
43
|
|
44 fi
|