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

Miklos Vajna vmiklos at frugalware.org
Fri Oct 8 22:27:15 PDT 2010


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'? :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101009/ad03a24d/attachment.pgp>


More information about the LibreOffice mailing list