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

Re: [PATCH] Allow building GIT in a different directory from the source directory

From
Alex Riesen <fork0@t-online.de>
Date
Dec 9, 2006, 01:16 UTC
Message-ID
<20061209011639.GA8010@steel.home>
In-Reply-To
<elc6j2$vej$1@sea.gmane.org>
Han-Wen Nienhuys, Fri, Dec 08, 2006 18:15:25 +0100:
Show 6 quoted lines
> -my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm');
> +
> +$src_prefix = '';
> +if (!($ENV{'PERL_SRCDIR'} eq "")) {
> +    $src_prefix = $ENV{'PERL_SRCDIR'} . "/"
> +}
Hurts my eyes :)
    $src_prefix = defined($ENV{PERL_SRCDIR}) ?  "$ENV{PERL_SRCDIR}/": '';
could be shorter, unless you want (you do) strict syntax check.
Previous: Han-Wen Nienhuys
Message 4 of 4 in “Allow building GIT in a different directory from the source directory”
  1. Allow building GIT in a different directory from the source directoryHan-Wen Nienhuys, Dec 8, 2006
  2. Jakub NarebskiDec 8, 2006
  3. Han-Wen NienhuysDec 8, 2006
  4. Alex RiesenDec 9, 2006

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.