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

Re: [PATCH] Makefile: Remove excess backslashes from sed

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Apr 9, 2010, 15:34 UTC
Message-ID
<g2xfabb9a1e1004090834y7d9c05f0xf09ef7f5c34c3ab7@mail.gmail.com>
In-Reply-To
<7vvdc12mmz.fsf@alter.siamese.dyndns.org>
Heya,
On Fri, Apr 9, 2010 at 07:57, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> I wonder if we can make this a lot simpler to avoid multi-line sed script.
> For example, we could write the source Python script to always begin with:
>
>        #!/usr/bin/python
>        import sys;
>        import os;
>        sys.path.insert(0, os.getenv("GITPYTHONLIB","."));

Thank you, I like this a lot better than our current approach. I think it's very ugly that git (needs to) mangle(s) the python files when installing, since that means that line-numbers don't match in stacktraces. I'd definitely prefer using this.

-- 
Cheers,

Sverre Rabbelier
Previous: Brian GernhardtNext: Brian Gernhardt
Message 6 of 8 in “Makefile: Remove excess backslashes from sed”
  1. Makefile: Remove excess backslashes from sedBrian Gernhardt, Apr 9, 2010
  2. Junio C HamanoApr 9, 2010
  3. David AguilarApr 9, 2010
  4. Makefile: Avoid multi-line sed when building python scriptsDavid Aguilar, Apr 9, 2010
  5. Brian GernhardtApr 9, 2010
  6. Sverre RabbelierApr 9, 2010
  7. Makefile: Simplify handling of python scriptsBrian Gernhardt, Apr 9, 2010
  8. David AguilarApr 9, 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.