Skip to content
Newer
Older
100644 74 lines (59 sloc) 3.1 KB
0f85b41 modified: README
root authored
1 --- auto/install.orig 2008-05-11 15:02:01.000000000 -0600
2 +++ auto/install 2008-05-11 15:03:54.000000000 -0600
3 @@ -19,45 +19,45 @@
4
5 install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \
6 $NGX_INSTALL_PERL_MODULES
7 - test -d '$NGX_PREFIX' || mkdir -p '$NGX_PREFIX'
8 + test -d '$NGX_DEST_DIR$NGX_PREFIX' || mkdir -p '$NGX_DEST_DIR$NGX_PREFIX'
9
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'
14 + test -d '`dirname "$NGX_DEST_DIR$NGX_SBIN_PATH"`' \
15 + || mkdir -p '`dirname "$NGX_DEST_DIR$NGX_SBIN_PATH"`'
16 + test ! -f '$NGX_DEST_DIR$NGX_SBIN_PATH' || mv '$NGX_DEST_DIR$NGX_SBIN_PATH' '$NGX_DEST_DIR$NGX_SBIN_PATH.old'
17 + cp $NGX_OBJS/nginx '$NGX_DEST_DIR$NGX_SBIN_PATH'
18
19 - test -d '$NGX_CONF_PREFIX' || mkdir -p '$NGX_CONF_PREFIX'
20 + test -d '$NGX_DEST_DIR$NGX_CONF_PREFIX' || mkdir -p '$NGX_DEST_DIR$NGX_CONF_PREFIX'
21
22 - cp conf/koi-win '$NGX_CONF_PREFIX'
23 - cp conf/koi-utf '$NGX_CONF_PREFIX'
24 - cp conf/win-utf '$NGX_CONF_PREFIX'
25 + cp conf/koi-win '$NGX_DEST_DIR$NGX_CONF_PREFIX'
26 + cp conf/koi-utf '$NGX_DEST_DIR$NGX_CONF_PREFIX'
27 + cp conf/win-utf '$NGX_DEST_DIR$NGX_CONF_PREFIX'
28
29 - test -f '$NGX_CONF_PREFIX/mime.types' \
30 - || cp conf/mime.types '$NGX_CONF_PREFIX'
31 - cp conf/mime.types '$NGX_CONF_PREFIX/mime.types.default'
32 + test -f '$NGX_DEST_DIR$NGX_CONF_PREFIX/mime.types' \
33 + || cp conf/mime.types '$NGX_DEST_DIR$NGX_CONF_PREFIX'
34 + cp conf/mime.types '$NGX_DEST_DIR$NGX_CONF_PREFIX/mime.types.default'
35
36 - test -f '$NGX_CONF_PREFIX/fastcgi_params' \
37 - || cp conf/fastcgi_params '$NGX_CONF_PREFIX'
38 - cp conf/fastcgi_params '$NGX_CONF_PREFIX/fastcgi_params.default'
39 + test -f '$NGX_DEST_DIR$NGX_CONF_PREFIX/fastcgi_params' \
40 + || cp conf/fastcgi_params '$NGX_DEST_DIR$NGX_CONF_PREFIX'
41 + cp conf/fastcgi_params '$NGX_DEST_DIR$NGX_CONF_PREFIX/fastcgi_params.default'
42
43 - test -f '$NGX_CONF_PATH' || cp conf/nginx.conf '$NGX_CONF_PREFIX'
44 - cp conf/nginx.conf '$NGX_CONF_PREFIX/nginx.conf.default'
45 + test -f '$NGX_DEST_DIR$NGX_CONF_PATH' || cp conf/nginx.conf '$NGX_DEST_DIR$NGX_CONF_PREFIX'
46 + cp conf/nginx.conf '$NGX_DEST_DIR$NGX_CONF_PREFIX/nginx.conf.default'
47
48 - test -d '`dirname "$NGX_PID_PATH"`' \
49 - || mkdir -p '`dirname "$NGX_PID_PATH"`'
50 + test -d '`dirname "$NGX_DEST_DIR$NGX_PID_PATH"`' \
51 + || mkdir -p '`dirname "$NGX_DEST_DIR$NGX_PID_PATH"`'
52
53 - test -d '`dirname "$NGX_HTTP_LOG_PATH"`' || \
54 - mkdir -p '`dirname "$NGX_HTTP_LOG_PATH"`'
55 + test -d '`dirname "$NGX_DEST_DIR$NGX_HTTP_LOG_PATH"`' || \
56 + mkdir -p '`dirname "$NGX_DEST_DIR$NGX_HTTP_LOG_PATH"`'
57
58 - test -d '$NGX_PREFIX/html' || cp -r html '$NGX_PREFIX'
59 + test -d '$NGX_DEST_DIR$NGX_PREFIX/html' || cp -r html '$NGX_DEST_DIR$NGX_PREFIX'
60 END
61
62
63 -if test -n "$NGX_ERROR_LOG_PATH"; then
64 +if test -n "$NGX_DEST_DIR$NGX_ERROR_LOG_PATH"; then
65 cat << END >> $NGX_MAKEFILE
66
67 - test -d '`dirname "$NGX_ERROR_LOG_PATH"`' || \
68 - mkdir -p '`dirname "$NGX_ERROR_LOG_PATH"`'
69 + test -d '`dirname "$NGX_DEST_DIR$NGX_ERROR_LOG_PATH"`' || \
70 + mkdir -p '`dirname "$NGX_DEST_DIR$NGX_ERROR_LOG_PATH"`'
71 END
72
73 fi
Something went wrong with that request. Please try again.