t/lib-http.sh: Restructure finding of default httpd location
commit0d344738dc55a75bddbcd9a08ea9a7b401f1aa63
authorTarmigan Casebolt <tarmigan+git@gmail.com>
Sat, 2 Jan 2010 22:04:25 +0000 (2 14:04 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jan 2010 09:07:07 +0000 (6 01:07 -0800)
tree37b65d856e363028051deb03d2536e3d61b9d965
parent902f235378cb2b2f6dd5dd664b9630c95321f0ae
t/lib-http.sh: Restructure finding of default httpd location

On CentOS 5, httpd is located at /usr/sbin/httpd, and the modules are
located at /usr/lib64/httpd/modules.  To enable easy testing of httpd,
we would like those locations to be detected automatically.

uname might not be the best way to determine the default location for
httpd since different Linux distributions apparently put httpd in
different places, so we test a couple different locations for httpd,
and use the first one that we come across.  We do the same for the
modules directory.

cc: Jay Soffian <jaysoffian@gmail.com>
Signed-off-by: Tarmigan Casebolt <tarmigan+git@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd.sh