i keep forgetting to reply-all to get it to the list :-) On Sat, Oct 9, 2010 at 12:27 AM, Miklos Vajna <vmik...@frugalware.org> wrote: > On Fri, Oct 08, 2010 at 08:58:26PM -0500, Norbert Thiebaud > <nthieb...@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.... > _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice