instaweb: allow for use of auto-generated scripts
this patch allows scripts that reside in $fqgitdir/gitweb to be used for firing up an instaweb server. this lays the groundwork for extending instaweb support to non-standard web servers, which may require a script for proper invocation. Signed-off-by: Mike Dalessio <mike@csa.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Mike Dalessio committed
Oct 6, 2007 at 13:29 UTC
14b45b66e7f75341040c9797af60fb9318c8b047
1 file changed
+3
-1
git-instaweb.sh
+3
-1
@@ -37,7 +37,9 @@ start_httpd () {
37
else
38
# many httpds are installed in /usr/sbin or /usr/local/sbin
39
# these days and those are not in most users $PATHs
40
- for i in /usr/local/sbin /usr/sbin
40
+ # in addition, we may have generated a server script
41
+ # in $fqgitdir/gitweb.
42
+ for i in /usr/local/sbin /usr/sbin "$fqgitdir/gitweb"
43
do
44
if test -x "$i/$httpd_only"
45
then