Thread (4 messages) flat view 4 messages, 3 authors, 2016-08-11

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

From: Alex Riesen <hidden>
Date: 2016-08-11 20:31:55

Han-Wen Nienhuys, Fri, Dec 08, 2006 18:15:25 +0100:
-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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help