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

Re: [PATCH 1/1] Introduce new build variables INSTALL_MODE_EXECUTABLE and INSTALL_MODE_DATA.

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 25, 2013, 06:54 UTC
Message-ID
<7vliac2898.fsf@alter.siamese.dyndns.org>
In-Reply-To
<510AA1E7.9070704@iam.tj>
TJ <git@iam.tj> writes:
Show 29 quoted lines
> On 31/01/13 15:51, Junio C Hamano wrote:
>> TJ <git@iam.tj> writes:
>> 
>>> +	$(INSTALL) -d -m $(INSTALL_MODE_EXECUTABLE) $(DESTDIR)$(man1dir)
>>> +	$(INSTALL) -d -m $(INSTALL_MODE_EXECUTABLE) $(DESTDIR)$(man5dir)
>>> +	$(INSTALL) -d -m $(INSTALL_MODE_EXECUTABLE) $(DESTDIR)$(man7dir)
>>> +	$(INSTALL) -m $(INSTALL_MODE_DATA) $(DOC_MAN1) $(DESTDIR)$(man1dir)
>>> +	$(INSTALL) -m $(INSTALL_MODE_DATA) $(DOC_MAN5) $(DESTDIR)$(man5dir)
>>> +	$(INSTALL) -m $(INSTALL_MODE_DATA) $(DOC_MAN7) $(DESTDIR)$(man7dir)
>> 
>> I'm tempted to suggest
>> 
>>     INSTALL_DIR = $(INSTALL) -d -m 755
>>     INSTALL_DATA = $(INSTALL) -m 644
>>     INSTALL_PROGRAM = $(INSTALL) -m 755
>> 
>> The number of lines the patch needs to touch will be the same, but
>> the resulting lines will not have many $(INSTALL_MODE_BLAH) shouting
>> at us.
>
> I did contemplate that but was concerned it might be seen as interfering unduly with
> the tool name/path settings, as opposed to their options.
>
>> Besides, you would want to differentiate the two kinds of 755 anyway
>> (I'd prefer INSTALL_PROGRAM to use -m 555 personally, for example).
>
> Yes, I think I lost that one in the mists of sed-land when making the changes :)
>
> I'll revise the patch based on received comments and post the revision tomorrow.
Did anything come out of this discussion?
Previous: TJNext: TJ
Message 6 of 7 in “Introduce new build variables INSTALL_MODE_EXECUTABLE and INSTALL_MODE_DATA.”
  1. 1/1 Introduce new build variables INSTALL_MODE_EXECUTABLE and INSTALL_MODE_DATA.TJ, Jan 31, 2013
  2. Jeff EplerJan 31, 2013
  3. Junio C HamanoJan 31, 2013
  4. Junio C HamanoJan 31, 2013
  5. TJJan 31, 2013
  6. Junio C HamanoFeb 25, 2013
  7. TJFeb 25, 2013

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.