Mercurial > hg > nginx-quic
annotate auto/install @ 2767:caa4f7dcf1e3
add prefix in Usage
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 28 Apr 2009 04:34:27 +0000 |
parents | 77264e0157ad |
children | 4e05bd832e56 |
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 | |
2758 | 18 case ".$NGX_SBIN_PATH" in |
19 ./*) | |
20 ;; | |
21 | |
22 .) | |
23 NGX_SBIN_PATH=$NGX_PREFIX/sbin/nginx | |
24 ;; | |
25 | |
26 *) | |
27 NGX_SBIN_PATH=$NGX_PREFIX/$NGX_SBIN_PATH | |
28 ;; | |
29 esac | |
30 | |
31 | |
32 case ".$NGX_CONF_PATH" in | |
33 ./*) | |
34 ;; | |
35 | |
36 *) | |
37 NGX_CONF_PATH=$NGX_PREFIX/$NGX_CONF_PATH | |
38 ;; | |
39 esac | |
40 | |
41 | |
42 NGX_CONF_PREFIX=`dirname $NGX_CONF_PATH` | |
43 | |
44 | |
45 case ".$NGX_PID_PATH" in | |
46 ./*) | |
47 ;; | |
48 | |
49 *) | |
50 NGX_PID_PATH=$NGX_PREFIX/$NGX_PID_PATH | |
51 ;; | |
52 esac | |
53 | |
54 | |
55 case ".$NGX_ERROR_LOG_PATH" in | |
56 ./*) | |
57 ;; | |
58 | |
59 *) | |
60 NGX_ERROR_LOG_PATH=$NGX_PREFIX/$NGX_ERROR_LOG_PATH | |
61 ;; | |
62 esac | |
63 | |
64 | |
65 case ".$NGX_HTTP_LOG_PATH" in | |
66 ./*) | |
67 ;; | |
68 | |
69 *) | |
70 NGX_HTTP_LOG_PATH=$NGX_PREFIX/$NGX_HTTP_LOG_PATH | |
71 ;; | |
72 esac | |
73 | |
74 | |
469 | 75 cat << END >> $NGX_MAKEFILE |
467 | 76 |
2009 | 77 install: $NGX_OBJS${ngx_dirsep}nginx${ngx_binext} \ |
599 | 78 $NGX_INSTALL_PERL_MODULES |
2009 | 79 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
|
80 |
2009 | 81 test -d '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`' \ |
82 || mkdir -p '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`' | |
83 test ! -f '\$(DESTDIR)$NGX_SBIN_PATH' \ | |
84 || mv '\$(DESTDIR)$NGX_SBIN_PATH' \ | |
85 '\$(DESTDIR)$NGX_SBIN_PATH.old' | |
86 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
|
87 |
2009 | 88 test -d '\$(DESTDIR)$NGX_CONF_PREFIX' \ |
89 || 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
|
90 |
2009 | 91 cp conf/koi-win '\$(DESTDIR)$NGX_CONF_PREFIX' |
92 cp conf/koi-utf '\$(DESTDIR)$NGX_CONF_PREFIX' | |
93 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
|
94 |
2009 | 95 test -f '\$(DESTDIR)$NGX_CONF_PREFIX/mime.types' \ |
96 || cp conf/mime.types '\$(DESTDIR)$NGX_CONF_PREFIX' | |
97 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
|
98 |
2009 | 99 test -f '\$(DESTDIR)$NGX_CONF_PREFIX/fastcgi_params' \ |
100 || cp conf/fastcgi_params '\$(DESTDIR)$NGX_CONF_PREFIX' | |
101 cp conf/fastcgi_params \ | |
102 '\$(DESTDIR)$NGX_CONF_PREFIX/fastcgi_params.default' | |
1352 | 103 |
2009 | 104 test -f '\$(DESTDIR)$NGX_CONF_PATH' \ |
105 || cp conf/nginx.conf '\$(DESTDIR)$NGX_CONF_PREFIX' | |
106 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
|
107 |
2009 | 108 test -d '\$(DESTDIR)`dirname "$NGX_PID_PATH"`' \ |
109 || 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
|
110 |
2009 | 111 test -d '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`' || \ |
112 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
|
113 |
2009 | 114 test -d '\$(DESTDIR)$NGX_PREFIX/html' \ |
115 || 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
|
116 END |
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
117 |
f390d1775430
nginx-0.1.0-2004-09-27-20:03:21 import
Igor Sysoev <igor@sysoev.ru>
parents:
diff
changeset
|
118 |
2009 | 119 if test -n "\$(DESTDIR)$NGX_ERROR_LOG_PATH"; then |
469 | 120 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
|
121 |
2009 | 122 test -d '\$(DESTDIR)`dirname "$NGX_ERROR_LOG_PATH"`' || \ |
123 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
|
124 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
|
125 |
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
|
126 fi |