[Libreoffice] bin/g clone now possible

Miklos Vajna vmiklos at frugalware.org
Thu Nov 11 17:10:27 PST 2010


On Thu, Nov 11, 2010 at 12:59:37PM +0100, Jan Holesovsky <kendy at suse.cz> wrote:
> Indeed - looks great, please go ahead! :-)

Pushed.

I'm attaching one more patch - I just realised symlinks under rawbuild
are not created after clone.

After applying the patch, one can proceed with:

git clone <url>
cd build
bin/g clone

to get the sources ready under rawbuild - so no extra 'bin/g pull' is
needed.

Does it look OK?

Thanks.
-------------- next part --------------
From 259dc7ef7a29a117d986d01f4f47df0e15891842 Mon Sep 17 00:00:00 2001
From: Miklos Vajna <vmiklos at frugalware.org>
Date: Fri, 12 Nov 2010 01:58:27 +0100
Subject: [PATCH] bin/g: create symlinks under rawbuild after clone

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

diff --git a/bin/g b/bin/g
index 3828ea6..c865ff0 100755
--- a/bin/g
+++ b/bin/g
@@ -192,12 +192,15 @@ for DIR in $DIRS ; do
             git $PAGER "$COMMAND" $EXTRA "${FILES[@]}"
             RETURN=$?
 
+            # now we can change the dir in case of clone as well
+            [ "$COMMAND" = "clone" ] && cd $DIR
+
             # update stamp if the repo changed
             NEWHEADREF=`git show-ref --head HEAD`
             [ "$HEADREF" != "$NEWHEADREF" ] && touch $CLONEDIR/repos_changed
 
             case "$COMMAND" in
-                pull)
+                pull|clone)
                     # update links
                     for link in `ls` ; do
                         if [ ! -e "$RAWBUILDDIR/$link" ] ; then
-- 
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/20101112/56bde1c0/attachment.pgp>


More information about the LibreOffice mailing list