[Libreoffice] small utility script to handle ../bin/g and similar commands

Norbert Thiebaud nthiebaud at gmail.com
Sat Oct 9 09:00:55 PDT 2010


i keep forgetting to reply-all to get it to the list :-)

 On Sat, Oct 9, 2010 at 12:27 AM, Miklos Vajna <vmiklos at frugalware.org> wrote:
> On Fri, Oct 08, 2010 at 08:58:26PM -0500, Norbert Thiebaud <nthiebaud at gmail.com> wrote:
>> # go up the chain until you find a .git
>> while [ ${current_dir} != "/" -a -d "${current_dir}" -a ! -d
>> "${current_dir}/.git" ] ;
>> do
>>     current_dir=$(dirname "${current_dir}")
>> done
>
> do you know 'git rev-parse --show-cdup'? :)

 The problem is that if you are in rootgit/rawbuild/vcl/source for example
 git-rev-parse with give you ../../
 the same result as if you where at
 rootgit/clone/libs-gui/vcl/source
 and now you are in the road to readlink and its notorious non-portability

 in other word.. the fact that rawbuild is a collection of link that
 point inside of differents git repos make llife a little more
 interesting....

>


More information about the LibreOffice mailing list