git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] instaweb: allow for use of auto-generated scripts

From
mike@csa.net <mike@csa.net>
Date
Oct 6, 2007, 17:29 UTC
Message-ID
<11916917892652-git-send-email-mike@csa.net>
In-Reply-To
<7vodfztviv.fsf@gitster.siamese.dyndns.org>

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>
---
 git-instaweb.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/git-instaweb.sh b/git-instaweb.sh
index b79c6b6..42d9c34 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -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
-- 
1.5.2.5
Previous: Johannes SchindelinNext: mike@csa.net
Message 6 of 8 in “instaweb: added support Ruby's WEBrick server”
  1. instaweb: added support Ruby's WEBrick servermike dalessio, Sep 18, 2007
  2. Eric WongSep 18, 2007
  3. Junio C HamanoSep 18, 2007
  4. David SymondsSep 19, 2007
  5. Johannes SchindelinSep 19, 2007
  6. 1/2 instaweb: allow for use of auto-generated scriptsmike@csa.net, Oct 6, 2007
  7. 2/2 instaweb: support for Ruby's WEBrick servermike@csa.net, Oct 6, 2007
  8. Eric WongOct 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.