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

Re: [PATCH] Makefile: add a target which will abort compilation with ancient shells

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 8, 2008, 20:19 UTC
Message-ID
<7vwsirb6q3.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<S1hQNVU9hvkXWOErhlMRjqFKaCUFasuIfMwjO4N7QOvu1ddz9cU6_w@cipher.nrlssc.navy.mil>
Brandon Casey <casey@nrlssc.navy.mil> writes:
Show 21 quoted lines
> This adds a make target which can be used to try to execute certain shell
> constructs which are required for compiling and running git.
>
> This patch provides a test for the $() notation for command substition
> which is used in the Makefile and extensively in the git scripts.
>
> The make target is named in such a way as to be a hint to the user that
> SHELL_PATH should be set to an appropriate shell. If the shell command
> fails, the user should receive a message similar to the following:
>
> make: *** [please_set_SHELL_PATH_to_a_more_modern_shell] Error 2
>
> Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
> ---
>
>
> Johannes Schindelin wrote:
>> Maybe we can even have some sanity check that tests if SHELL_PATH groks 
>> $()?
>
> how about this?

Thanks, both. I think this is cute and at the same time the right thing to do ;-).

Previous: Brandon Casey
Message 5 of 5 in “Makefile: use backticks rather than $() notation to support ancient shells”
  1. Makefile: use backticks rather than $() notation to support ancient shellsBrandon Casey, Aug 5, 2008
  2. Johannes SchindelinAug 6, 2008
  3. Makefile: set SHELL to value of SHELL_PATHBrandon Casey, Aug 7, 2008
  4. Makefile: add a target which will abort compilation with ancient shellsBrandon Casey, Aug 7, 2008
  5. Junio C HamanoAug 8, 2008

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.