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

[PATCH GSoC] gitweb: Add global installation target for gitweb

From
Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
Date
May 13, 2010, 09:38 UTC
Message-ID
<AANLkTimzoa_B2UV-4J7DvndiLNp5bYhAeT9VU0PqzUWE@mail.gmail.com>

The current installation of gitweb requires us to give it a target directory. But splitting of gitweb makes it difficult for git instaweb to continue with the current method.

This commit allow installation of gitweb files into the target '$(sharedir)/gitweb' by default when user type 'make install'. This target act as root directory for instaweb servers.

Signed-off-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
---

This is necessary step to acheive the goals of my GSoC project. Currently instaweb script creates gitweb.* files in every repository which is unnecessary. So if we have global folder for gitweb files we can configure the instaweb server root to point to that direction.

 Makefile |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
index de7f680..0b262a9 100644
--- a/Makefile
+++ b/Makefile
@@ -269,6 +269,7 @@ mandir = share/man
 infodir = share/info
 gitexecdir = libexec/git-core
 sharedir = $(prefix)/share
+gitwebdir = $(sharedir)/gitweb
 template_dir = share/git-core/templates
 htmldir = share/doc/git-doc
 ifeq ($(prefix),/usr)
@@ -1971,6 +1972,7 @@ install: all
 	$(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
 ifndef NO_PERL
 	$(MAKE) -C perl prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install
+	$(MAKE) -C gitweb gitwebdir=$(gitwebdir) install
 endif
 ifndef NO_PYTHON
 	$(MAKE) -C git_remote_helpers prefix='$(prefix_SQ)'
DESTDIR='$(DESTDIR_SQ)' install
-- 
1.7.1.16.g5d405c.dirty
Next: Jakub Narebski
Message 1 of 7 in “gitweb: Add global installation target for gitweb”
  1. gitweb: Add global installation target for gitwebPavan Kumar Sunkara, May 13, 2010
  2. Jakub NarebskiMay 14, 2010
  3. Pavan Kumar SunkaraMay 14, 2010
  4. Jakub NarebskiMay 14, 2010
  5. Jakub NarebskiMay 15, 2010
  6. Pavan Kumar SunkaraMay 15, 2010
  7. Jakub NarebskiMay 15, 2010

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.