Mercurial > hg > nginx-quic
annotate auto/install @ 1050:5d9451a01c5d
add comment
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 18 Jan 2007 20:23:16 +0000 |
parents | 400711951595 |
children | e958b3cab51a |
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 |
495 | 29 test -d '`dirname "$NGX_CONF_PATH"`' \ |
30 || mkdir -p '`dirname "$NGX_CONF_PATH"`' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
31 |
495 | 32 cp conf/koi-win '`dirname "$NGX_CONF_PATH"`' |
657 | 33 cp conf/koi-utf '`dirname "$NGX_CONF_PATH"`' |
34 cp conf/win-utf '`dirname "$NGX_CONF_PATH"`' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
35 |
495 | 36 test -f '`dirname "$NGX_CONF_PATH"`/mime.types' || \ |
37 cp conf/mime.types '`dirname "$NGX_CONF_PATH"`/mime.types' | |
38 cp conf/mime.types '`dirname "$NGX_CONF_PATH"`/mime.types.default' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
39 |
495 | 40 test -f '$NGX_CONF_PATH' || cp conf/nginx.conf '$NGX_CONF_PATH' |
41 cp conf/nginx.conf '`dirname "$NGX_CONF_PATH"`/nginx.conf.default' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
42 |
495 | 43 test -d '`dirname "$NGX_PID_PATH"`' \ |
44 || 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
|
45 |
495 | 46 test -d '`dirname "$NGX_HTTP_LOG_PATH"`' || \ |
47 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
|
48 |
495 | 49 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
|
50 END |
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
51 |
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
52 |
469 | 53 if test -n "$NGX_ERROR_LOG_PATH"; then |
54 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
|
55 |
495 | 56 test -d '`dirname "$NGX_ERROR_LOG_PATH"`' || \ |
57 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
|
58 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
|
59 |
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
|
60 fi |