Re: Support building in a different directory on Solaris

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Support building in a different directory on Solaris
Дата
Msg-id 10406.997482282@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Support building in a different directory on Solaris  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
Peter Eisentraut <peter_e@gmx.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

В списке pgsql-patches по дате отправления:

Предыдущее
От: Ian Lance Taylor
Дата:
Сообщение: Re: Support building in a different directory on Solaris
Следующее
От: Ian Lance Taylor
Дата:
Сообщение: Select parser at runtime