Mercurial > hg > nginx
annotate auto/install @ 1824:8299cd253745
add log
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 03 Jan 2008 21:29:01 +0000 |
parents | 8dcb9eb5e25a |
children | df5ae577fab5 |
rev | line source |
---|---|
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
1 |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
2 # Copyright (C) Igor Sysoev |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
3 |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
4 |
599 | 5 if [ $USE_PERL = YES ]; then |
6 | |
7 cat << END >> $NGX_MAKEFILE | |
8 | |
9 install_perl_modules: | |
10 cd $NGX_OBJS/src/http/modules/perl && make install | |
11 END | |
12 | |
13 NGX_INSTALL_PERL_MODULES=install_perl_modules | |
14 | |
15 fi | |
16 | |
17 | |
469 | 18 cat << END >> $NGX_MAKEFILE |
467 | 19 |
599 | 20 install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \ |
21 $NGX_INSTALL_PERL_MODULES | |
495 | 22 test -d '$NGX_PREFIX' || mkdir -p '$NGX_PREFIX' |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
23 |
495 | 24 test -d '`dirname "$NGX_SBIN_PATH"`' \ |
25 || mkdir -p '`dirname "$NGX_SBIN_PATH"`' | |
26 test ! -f '$NGX_SBIN_PATH' || mv '$NGX_SBIN_PATH' '$NGX_SBIN_PATH.old' | |
27 cp $NGX_OBJS/nginx '$NGX_SBIN_PATH' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
28 |
1352 | 29 test -d '$NGX_CONF_PREFIX' || mkdir -p '$NGX_CONF_PREFIX' |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
30 |
1352 | 31 cp conf/koi-win '$NGX_CONF_PREFIX' |
32 cp conf/koi-utf '$NGX_CONF_PREFIX' | |
33 cp conf/win-utf '$NGX_CONF_PREFIX' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
34 |
1352 | 35 test -f '$NGX_CONF_PREFIX/mime.types' \ |
36 || cp conf/mime.types '$NGX_CONF_PREFIX' | |
1362 | 37 cp conf/mime.types '$NGX_CONF_PREFIX/mime.types.default' |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
38 |
1352 | 39 test -f '$NGX_CONF_PREFIX/fastcgi_params' \ |
40 || cp conf/fastcgi_params '$NGX_CONF_PREFIX' | |
1362 | 41 cp conf/fastcgi_params '$NGX_CONF_PREFIX/fastcgi_params.default' |
1352 | 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' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
45 |
495 | 46 test -d '`dirname "$NGX_PID_PATH"`' \ |
47 || mkdir -p '`dirname "$NGX_PID_PATH"`' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
48 |
495 | 49 test -d '`dirname "$NGX_HTTP_LOG_PATH"`' || \ |
50 mkdir -p '`dirname "$NGX_HTTP_LOG_PATH"`' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
51 |
495 | 52 test -d '$NGX_PREFIX/html' || cp -r html '$NGX_PREFIX' |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
53 END |
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
54 |
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
55 |
469 | 56 if test -n "$NGX_ERROR_LOG_PATH"; then |
57 cat << END >> $NGX_MAKEFILE | |
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
58 |
495 | 59 test -d '`dirname "$NGX_ERROR_LOG_PATH"`' || \ |
60 mkdir -p '`dirname "$NGX_ERROR_LOG_PATH"`' | |
444
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
61 END |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
62 |
42d11f017717
nginx-0.1.0-2004-09-29-20:00:49 import; remove years from copyright
Igor Sysoev <igor@sysoev.ru>
parents:
440
diff
changeset
|
63 fi |