summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bf7c902)
raw | patch | inline | side by side (parent: bf7c902)
author | Kevin Ballard <kevin@sb.org> | |
Fri, 21 Mar 2008 07:27:35 +0000 (03:27 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 23 Mar 2008 00:53:12 +0000 (17:53 -0700) |
Give lib-git-svn.sh a few alternate paths to look for apache2.
Explicitly define the LockFile so httpd will actually start under OS X
Signed-off-by: Kevin Ballard <kevin@sb.org>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Explicitly define the LockFile so httpd will actually start under OS X
Signed-off-by: Kevin Ballard <kevin@sb.org>
Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-git-svn.sh | patch | blob | history |
diff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh
index 9ee35e79013f9b1f6ef3df6c9102368fa347c089..9decd2e1e81cfcba9c2b407abb176eea73d37ed9 100644 (file)
--- a/t/lib-git-svn.sh
+++ b/t/lib-git-svn.sh
test-chmtime +1 "$1"
}
-SVN_HTTPD_MODULE_PATH=${SVN_HTTPD_MODULE_PATH-'/usr/lib/apache2/modules'}
-SVN_HTTPD_PATH=${SVN_HTTPD_PATH-'/usr/sbin/apache2'}
+for d in \
+ "$SVN_HTTPD_PATH" \
+ /usr/sbin/apache2 \
+ /usr/sbin/httpd \
+; do
+ if test -f "$d"
+ then
+ SVN_HTTPD_PATH="$d"
+ break
+ fi
+done
+for d in \
+ "$SVN_HTTPD_MODULE_PATH" \
+ /usr/lib/apache2/modules \
+ /usr/libexec/apache2 \
+; do
+ if test -d "$d"
+ then
+ SVN_HTTPD_MODULE_PATH="$d"
+ break
+ fi
+done
start_httpd () {
if test -z "$SVN_HTTPD_PORT"
ServerRoot "$GIT_DIR"
DocumentRoot "$GIT_DIR"
PidFile "$GIT_DIR/httpd.pid"
+LockFile logs/accept.lock
Listen 127.0.0.1:$SVN_HTTPD_PORT
LoadModule dav_module $SVN_HTTPD_MODULE_PATH/mod_dav.so
LoadModule dav_svn_module $SVN_HTTPD_MODULE_PATH/mod_dav_svn.so