Mercurial > hg > nginx
annotate auto/install @ 2343:81901d359d98 stable-0.6
bump version
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 27 Nov 2008 14:01:11 +0000 |
parents | 836d9aab34e5 |
children | 77264e0157ad |
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 |
2094 | 20 install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \ |
599 | 21 $NGX_INSTALL_PERL_MODULES |
2094 | 22 test -d '\$(DESTDIR)$NGX_PREFIX' || mkdir -p '\$(DESTDIR)$NGX_PREFIX' |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
23 |
2094 | 24 test -d '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`' \ |
25 || mkdir -p '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`' | |
26 test ! -f '\$(DESTDIR)$NGX_SBIN_PATH' \ | |
27 || mv '\$(DESTDIR)$NGX_SBIN_PATH' \ | |
28 '\$(DESTDIR)$NGX_SBIN_PATH.old' | |
29 cp $NGX_OBJS/nginx '\$(DESTDIR)$NGX_SBIN_PATH' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
30 |
2094 | 31 test -d '\$(DESTDIR)$NGX_CONF_PREFIX' \ |
32 || mkdir -p '\$(DESTDIR)$NGX_CONF_PREFIX' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
33 |
2094 | 34 cp conf/koi-win '\$(DESTDIR)$NGX_CONF_PREFIX' |
35 cp conf/koi-utf '\$(DESTDIR)$NGX_CONF_PREFIX' | |
36 cp conf/win-utf '\$(DESTDIR)$NGX_CONF_PREFIX' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
37 |
2094 | 38 test -f '\$(DESTDIR)$NGX_CONF_PREFIX/mime.types' \ |
39 || cp conf/mime.types '\$(DESTDIR)$NGX_CONF_PREFIX' | |
40 cp conf/mime.types '\$(DESTDIR)$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
|
41 |
2094 | 42 test -f '\$(DESTDIR)$NGX_CONF_PREFIX/fastcgi_params' \ |
43 || cp conf/fastcgi_params '\$(DESTDIR)$NGX_CONF_PREFIX' | |
44 cp conf/fastcgi_params \ | |
45 '\$(DESTDIR)$NGX_CONF_PREFIX/fastcgi_params.default' | |
1352 | 46 |
2094 | 47 test -f '\$(DESTDIR)$NGX_CONF_PATH' \ |
48 || cp conf/nginx.conf '\$(DESTDIR)$NGX_CONF_PREFIX' | |
49 cp conf/nginx.conf '\$(DESTDIR)$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
|
50 |
2094 | 51 test -d '\$(DESTDIR)`dirname "$NGX_PID_PATH"`' \ |
52 || mkdir -p '\$(DESTDIR)`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
|
53 |
2094 | 54 test -d '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`' || \ |
55 mkdir -p '\$(DESTDIR)`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
|
56 |
2094 | 57 test -d '\$(DESTDIR)$NGX_PREFIX/html' \ |
58 || cp -r html '\$(DESTDIR)$NGX_PREFIX' | |
440
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
59 END |
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
60 |
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
61 |
2094 | 62 if test -n "\$(DESTDIR)$NGX_ERROR_LOG_PATH"; then |
469 | 63 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
|
64 |
2094 | 65 test -d '\$(DESTDIR)`dirname "$NGX_ERROR_LOG_PATH"`' || \ |
66 mkdir -p '\$(DESTDIR)`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
|
67 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
|
68 |
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
|
69 fi |