Re: Support building in a different directory on Solaris

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

Ian Lance Taylor <ian(at)airs(dot)com> writes:
> the test built in to /bin/sh does not support -ef, although
> /usr/bin/test does support it.

Rather than assuming a test with -ef is available, ISTM the portable
answer is not to depend on it at all. Why not forget the whole thing
and use something like

if [ `cd "$srcdir" ; /bin/pwd` = `/bin/pwd` ] ; then : ; else

> The second is that /bin/find requires
> an explicit -print when -o is used.

This is a good change. A lot of older "find"s don't provide a default
-print action at all (-o or no -o), so writing -print is the portable
way to use it. I don't think you need two of them though.

regards, tom lane

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Ian Lance Taylor 2001-08-10 21:39:41 Re: Support building in a different directory on Solaris
Previous Message Ian Lance Taylor 2001-08-10 20:41:47 Support building in a different directory on Solaris