File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
scripts /
apache /
apconf-conv.sh
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 8 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
1: #!/bin/sh
2:
3: if [ "$1" = "" ]; then
4: echo "Usage: $0 /somewhere/httpd.conf"
5: exit 1
6: fi
7:
8: if [ ! -w $1 ]; then
9: echo "You cannot write to $1"
10: exit 1
11: fi
12:
13: TMPFILE=tmpfile.$$
14:
15: awk -f conffix.awk <$1 >$TMPFILE
16:
17: if [ "$?" != 0 ]; then
18: exit 1
19: fi
20:
21: mv -f $1 $1.orig
22: mv -f $TMPFILE $1
23: exit 0
24:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>