3 # determines the Apache version number
5 if test x"-v" = x"${1}"; then
6 if test x = x"${2}"; then
7 echo "usage: ${0} -v httpd"
10 ${2} -v|grep 'ersion:*'|awk '{print $3}'|awk -F/ '{print $2}'
14 if test x"-iseapi" = x"${1}"; then
15 if test x = x"${2}"; then
16 echo "usage: ${0} -iseapi httpd"
19 eapi=`${2} -V|grep -c EAPI`
20 if test x0 = x"${eapi}"; then
30 echo "usage: ${0} -iseapi|-v httpd"