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

Re: [PATCH v2 4/6] build dashless "bin-wrappers" directory similar to installed bindir

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 30, 2009, 06:28 UTC
Message-ID
<7vmy241q75.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1259561971-25730-5-git-send-email-mmogilvi_git@miniinfo.net>
Matthew Ogilvie <mmogilvi_git@miniinfo.net> writes:
Show 21 quoted lines
> diff --git a/wrap-for-bin.sh b/wrap-for-bin.sh
> new file mode 100644
> index 0000000..ee2bc98
> --- /dev/null
> +++ b/wrap-for-bin.sh
> @@ -0,0 +1,15 @@
> +#!/bin/sh
> +
> +# wrap-for-bin.sh: Template for git executable wrapper scripts
> +# to run test suite against sandbox, but with only bindir-installed
> +# executables in PATH.  The Makefile copies this into various
> +# files in bin-wrappers, substituting
> +# __GIT_EXEC_PATH__ and __PROG__.
> +
> +GIT_EXEC_PATH="__GIT_EXEC_PATH__"
> +GIT_TEMPLATE_DIR="__GIT_EXEC_PATH__/templates/blt"
> +GITPERLLIB="__GIT_EXEC_PATH__/perl/blib/lib"
> +PATH="__GIT_EXEC_PATH__/bin-wrappers:$PATH"
> +export GIT_EXEC_PATH GIT_TEMPLATE_DIR GITPERLLIB PATH
> +
> +exec "${GIT_EXEC_PATH}/__PROG__" "$@"
Two issues, one minor and one not so minor but not grave:
 - Everywhere else we seem to use "@@UPPERCASE_NAME@@" not
   double-underscore as placeholders like the above.
 - @@PROG@@ is under our control and it is easy for us to guarantee that
   it won't have any funny letters, but GIT_EXEC_PATH is not.  Is it safe
   to do a simple-minded "sed" replacement, or does it need the usual sq
   trick employed in the other replacement in our Makefile?
Previous: Junio C HamanoNext: Matthew Ogilvie
Message 12 of 14 in “Run test suite without dashed commands in PATH”
  1. 0/6 Run test suite without dashed commands in PATHMatthew Ogilvie, Nov 30, 2009
  2. 1/6 t2300: use documented technique to invoke git-sh-setupMatthew Ogilvie, Nov 30, 2009
  3. 2/6 t3409 t4107 t7406: use dashless commandsMatthew Ogilvie, Nov 30, 2009
  4. 3/6 t/README: Document GIT_TEST_INSTALLED and GIT_TEST_EXEC_PATHMatthew Ogilvie, Nov 30, 2009
  5. 4/6 build dashless "bin-wrappers" directory similar to installed bindirMatthew Ogilvie, Nov 30, 2009
  6. 5/6 run test suite without dashed git-commands in PATHMatthew Ogilvie, Nov 30, 2009
  7. 6/6 INSTALL: document a simpler way to run uninstalled buildsMatthew Ogilvie, Nov 30, 2009
  8. Junio C HamanoNov 30, 2009
  9. Jakub NarebskiDec 1, 2009
  10. Matthew OgilvieDec 2, 2009
  11. Junio C HamanoDec 2, 2009
  12. Junio C HamanoNov 30, 2009
  13. Matthew OgilvieDec 1, 2009
  14. Junio C HamanoNov 30, 2009

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.