comparison auto/init @ 4:4b2dafa26fe2 NGINX_0_1_2

nginx 0.1.2 *) Feature: the --user=USER, --group=GROUP, and --with-ld-opt=OPTIONS options in configure. *) Feature: the server_name directive supports *.domain.tld. *) Bugfix: the portability improvements. *) Bugfix: if configuration file was set in command line, the reconfiguration was impossible; bug appeared in 0.1.1. *) Bugfix: proxy module may get caught in an endless loop when sendfile is not used. *) Bugfix: with sendfile the response was not recoded according to the charset module directives; bug appeared in 0.1.1. *) Bugfix: very seldom bug in the kqueue processing. *) Bugfix: the gzip module compressed the proxied responses that was already compressed.
author Igor Sysoev <http://sysoev.ru>
date Thu, 21 Oct 2004 00:00:00 +0400
parents cc9f381affaa
children 6f8b0dc0f8dd
comparison
equal deleted inserted replaced
3:8beaf7b3241f 4:4b2dafa26fe2
1 1
2 # Copyright (C) Igor Sysoev 2 # Copyright (C) Igor Sysoev
3 3
4 4
5 NGX_MAKEFILE=$NGX_OBJS/Makefile
6 NGX_MODULES_C=$NGX_OBJS/ngx_modules.c
7
8 NGX_AUTO_HEADERS_H=$NGX_OBJS/ngx_auto_headers.h
9 NGX_AUTO_CONFIG_H=$NGX_OBJS/ngx_auto_config.h
10
11 NGX_AUTOTEST=$NGX_OBJS/autotest
12 NGX_AUTOCONF_ERR=$NGX_OBJS/autoconf.err
13
14 # STUBs
15 OBJS=$NGX_OBJS
16 NGX_ERR=$OBJS/autoconf.err
5 MAKEFILE=$OBJS/Makefile 17 MAKEFILE=$OBJS/Makefile
6 18
7 NGX_AUTO_CONFIG_H=$OBJS/ngx_auto_config.h
8 NGX_MODULES_C=$OBJS/ngx_modules.c
9 19
10 NGX_AUTOTEST=$OBJS/autotest 20 NGX_PCH=
11 NGX_ERR=$OBJS/autoconf.err 21 NGX_USE_PCH=
12
13 CC_WARN=$CC
14
15 PCH=NO
16 USEPCH=
17
18 OBJEXT=
19 BINEXT=
20 DIRSEP='\/'
21 MAKE_SL=NO
22 22
23 23
24 # checking echo's "-n" option and "\c" capabilties 24 # check the echo's "-n" option and "\c" capability
25 25
26 if echo "test\c" | grep c >/dev/null; then 26 if echo "test\c" | grep c >/dev/null; then
27
27 if echo -n test | grep n >/dev/null; then 28 if echo -n test | grep n >/dev/null; then
28 ngx_n= 29 ngx_n=
29 ngx_c= 30 ngx_c=
31
30 else 32 else
31 ngx_n=-n 33 ngx_n=-n
32 ngx_c= 34 ngx_c=
33 fi 35 fi
34 36
36 ngx_n= 38 ngx_n=
37 ngx_c='\c' 39 ngx_c='\c'
38 fi 40 fi
39 41
40 42
43 # create Makefile
41 44
42 if test ! -f Makefile; then 45 cat << END > Makefile
43
44 cat << END > Makefile
45 46
46 build: 47 build:
47 \$(MAKE) -f $OBJS/Makefile 48 \$(MAKE) -f $NGX_MAKEFILE
48 49
49 install: 50 install:
50 \$(MAKE) -f $OBJS/Makefile install 51 \$(MAKE) -f $NGX_MAKEFILE install
51 52
52 clean: 53 clean:
53 rm -rf Makefile $OBJS 54 rm -rf Makefile $NGX_OBJS
54 55
55 upgrade: 56 upgrade:
56 $SBIN_PATH -t 57 $SBIN_PATH -t
57 kill -USR2 \`cat $PID_PATH\` 58 kill -USR2 \`cat $PID_PATH\`
58 sleep 1 59 sleep 1
59 test -f $PID_PATH.newbin 60 test -f $PID_PATH.newbin
60 kill -WINCH \`cat $PID_PATH\` 61 kill -WINCH \`cat $PID_PATH\`
61
62 END 62 END
63
64 fi