Skip to content

Commit

Permalink
instaweb: allow for use of auto-generated scripts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Dalessio authored and Shawn O. Pearce committed Oct 16, 2007
1 parent a9834f5 commit 14b45b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-instaweb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ start_httpd () {
else
# many httpds are installed in /usr/sbin or /usr/local/sbin
# these days and those are not in most users $PATHs
for i in /usr/local/sbin /usr/sbin
# in addition, we may have generated a server script
# in $fqgitdir/gitweb.
for i in /usr/local/sbin /usr/sbin "$fqgitdir/gitweb"
do
if test -x "$i/$httpd_only"
then
Expand Down

0 comments on commit 14b45b6

Please sign in to comment.