[Libreoffice] bin/g clone now possible

Miklos Vajna vmiklos at frugalware.org
Thu Nov 11 02:11:55 PST 2010


On Tue, Nov 09, 2010 at 12:49:45PM +0100, Jan Holesovsky <kendy at suse.cz> wrote:
> I have updated the bin/g script so that it is now possible to use it for
> cloning the repos.

Hi,

Nice! Though I think it would make sense to allow just running 'bin/g
clone' without any parameters, as I think most of the cases we want the
same base url for build.git and the other repos. :)

Patch attached, OK to push?

Thanks.
-------------- next part --------------
From b1245b53c462170e219d935be4985c74ba92edaa Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos at frugalware.org>
Date: Thu, 11 Nov 2010 11:06:22 +0100
Subject: [PATCH] bin/g: make clone work without a parameter

---
 bin/g |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/bin/g b/bin/g
index 347522d..3828ea6 100755
--- a/bin/g
+++ b/bin/g
@@ -176,6 +176,11 @@ for DIR in $DIRS ; do
                         [ -z "`git diff-index --name-only HEAD --`" ] && exit 0
                     fi
                     ;;
+                clone)
+                    if [ -z "$FILES" ]; then
+                        EXTRA="$(git config remote.origin.url|sed 's|/[^/]\+$||')/${DIR}"
+                    fi
+                    ;;
             esac
 
             [ "$REPORT_REPOS" = "1" ] && echo "===== $DIR ====="
-- 
1.7.3.2

-------------- 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/20101111/bd3d9253/attachment.pgp>


More information about the LibreOffice mailing list