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

Re: [PATCHv2 GSoC] git-instaweb: Configure it to work with new gitweb structure

From
Jakub Narebski <jnareb@gmail.com>
Date
May 22, 2010, 18:59 UTC
Message-ID
<201005222059.54995.jnareb@gmail.com>
In-Reply-To
<AANLkTinbzlRsmQekpLlFQC3xOMB2ZUurLqJoyFCnHZFG@mail.gmail.com>
On Sat, 22 May 2010, Pavan Kumar Sunkara wrote:
> 2010/5/22 Jakub Narebski <jnareb@gmail.com>:
>> On Sat, 22 May 2010, Pavan Kumar Sunkara wrote:
>> Acked-by: Jakub Narebski <jnareb@gmail.com>
>>
>> _If_ there is no problem with $(gitwebdir) and not $(gitwebdir_SQ),
>> see below for details.
[...]
Show 27 quoted lines
>>> diff --git a/Makefile b/Makefile
>>> index caf2f64..91cd726 100644
>>> --- a/Makefile
>>> +++ b/Makefile
>>> @@ -1592,15 +1592,8 @@ git-instaweb: git-instaweb.sh gitweb/gitweb.cgi gitweb/static/gitweb.css gitweb/
>>>       sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \
>> [...]
>>> +         -e 's|@@GITWEBDIR@@|$(gitwebdir)|g' \
>>>           -e 's|@@PERL@@|$(PERL_PATH_SQ)|g' \
>>> -            -e 's|@@GITWEB_CSS_NAME@@|$(GITWEB_CSS)|' \
>>> -            -e 's|@@GITWEB_JS_NAME@@|$(GITWEB_JS)|' \
>>>           $@.sh> $@+ && \
>>>       chmod +x $@+ && \
>>>       mv $@+ $@
>>> @@ -1972,6 +1965,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
>>
>> Have you checked that you can use $(gitwebdir) and don't need
>> $(gitwebdir_SQ) here?  Does git-instaweb installs and works correctly
>> if 'gitwebdir' contains spaces and single or double quote characters?
>> But perhaps that doesn't matter in practice, and this is good enough.
> 
> Nope. I didn't check it. But you are right.

Does it mean that after your patch git-instaweb works correctly if 'gitwebdir' is set to something like (for example):

  gitwebdir="/home/local/some strange \"path'"
-- 
Jakub Narebski
Poland
Previous: Pavan Kumar SunkaraNext: Pavan Kumar Sunkara
Message 4 of 6 in “[PATCHv2 GSoC] git-instaweb: Configure it to work with new gitweb structure”
  1. Pavan Kumar SunkaraMay 22, 2010
  2. Jakub NarebskiMay 22, 2010
  3. Pavan Kumar SunkaraMay 22, 2010
  4. Jakub NarebskiMay 22, 2010
  5. Pavan Kumar SunkaraMay 22, 2010
  6. Jakub NarebskiMay 22, 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.