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
if [ -f "$srcdir/funkyFileName" ]
-- $srcdir is .
-- $srcdir is not .
regards, tom lane
In response to
pgsql-patches by date
|Next:||From: Mikhail Terekhov||Date: 2001-08-10 22:52:24|
|Subject: libpgtcl for tcl >= 8.0 (Unix & Windows)|
|Previous:||From: Ian Lance Taylor||Date: 2001-08-10 22:20:32|
|Subject: Re: Support building in a different directory on Solaris|