Re: Support building in a different directory on Solaris

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Ian Lance Taylor <ian(at)airs(dot)com>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Support building in a different directory on Solaris
Date: 2001-08-10 22:24:42
Message-ID: 10406.997482282@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> Tom Lane writes:
>> if [ `cd "$srcdir" ; /bin/pwd` = `/bin/pwd` ] ; then : ; else

> That doesn't work in some setups; that's why we have what we have now.
> The problem is that this test would actually evaluate to "not equal" and
> the prep_buildtree would run on top of the source tree. Ugh.

Hmm. Well, there's always the direct-experiment approach to finding out
whether two directories are the same. How about some variant of

touch ./funkyFileName
if [ -f "$srcdir/funkyFileName" ]
-- $srcdir is .
else
-- $srcdir is not .
fi
rm ./funkyFileName

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Mikhail Terekhov 2001-08-10 22:52:24 libpgtcl for tcl >= 8.0 (Unix & Windows)
Previous Message Ian Lance Taylor 2001-08-10 22:20:32 Re: Support building in a different directory on Solaris