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.