couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: ./configure question
Date Fri, 03 Apr 2015 14:02:49 GMT

> On 03 Apr 2015, at 15:55, Alexander Shorin <kxepal@gmail.com> wrote:
> 
> On Fri, Apr 3, 2015 at 4:46 PM, Alexander Shorin <kxepal@gmail.com> wrote:
>> On Fri, Apr 3, 2015 at 4:38 PM, Jan Lehnardt <jan@apache.org> wrote:
>>> rootdir="$(cd "${0%/*}" 2>/dev/null; echo "$PWD")"
>> 
>> ${0} - executable path. like shell
>> ${0%/*} - get parent directory of this path
>> $(cd ${0%/*}) - execute a shell command
>> since cd changes current directory, it also updates environment
>> variable $PWD according it. In case of success you'll be moved to
>> somewhere like /bin (for me)
> 
> TL;DR that script is to find full path of an executed script and
> ensure that location is accessible and set rootdir with the directory
> path where those configure script is located.

Thanks!

I assume this is for cases where people do /path/to/couchdb/configure, right?

Best
Jan
--


Mime
View raw message