0
|
1
|
|
2 # Copyright (C) Igor Sysoev
|
|
3
|
|
4
|
|
5 cat << END >> $MAKEFILE
|
|
6 install:
|
|
7 test -d $PREFIX || mkdir -p $PREFIX
|
|
8
|
|
9 test -d `dirname $SBIN_PATH` || mkdir -p `dirname $SBIN_PATH`
|
|
10 test ! -f $SBIN_PATH || mv $SBIN_PATH $SBIN_PATH.old
|
4
|
11 cp $OBJS/nginx $SBIN_PATH
|
0
|
12
|
|
13 test -d `dirname $CONF_PATH` || mkdir -p `dirname $CONF_PATH`
|
|
14
|
|
15 cp conf/koi-win `dirname $CONF_PATH`
|
|
16
|
|
17 test -f `dirname $CONF_PATH`/mime.types || \
|
|
18 cp conf/mime.types `dirname $CONF_PATH`/mime.types
|
|
19 cp conf/mime.types `dirname $CONF_PATH`/mime.types.default
|
|
20
|
|
21 test -f $CONF_PATH || cp conf/nginx.conf $CONF_PATH
|
|
22 cp conf/nginx.conf `dirname $CONF_PATH`/nginx.conf.default
|
|
23
|
|
24 test -d `dirname $PID_PATH` || mkdir -p `dirname $PID_PATH`
|
|
25
|
|
26 test -d `dirname $HTTP_LOG_PATH` || mkdir -p `dirname $HTTP_LOG_PATH`
|
|
27
|
|
28 test -d $PREFIX/html || cp -r html $PREFIX
|
|
29
|
|
30 #test -d $PREFIX/temp || mkdir -p $PREFIX/temp
|
|
31 END
|
|
32
|
|
33
|
|
34 if [ ".$ERROR_LOG_PATH" != "." ]; then
|
|
35 cat << END >> $MAKEFILE
|
|
36
|
|
37 test -d `dirname $ERROR_LOG_PATH` || mkdir -p `dirname $ERROR_LOG_PATH`
|
|
38 END
|
|
39
|
|
40 fi
|