[Libreoffice-commits] .: 2 commits - download g
Norbert Thiebaud
nthiebaud at kemper.freedesktop.org
Sun Dec 5 17:12:03 PST 2010
download | 4 ++--
g | 9 +++++----
2 files changed, 7 insertions(+), 6 deletions(-)
New commits:
commit 9e2e36b5b3f27dd12312ea6477a56cb4e255b15a
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Sun Dec 5 00:47:51 2010 -0600
download do g clone even if ./clone exist, to pick up changes in repo-list
repo-list can chage due to an autogen and/or a previous clone may have been
incomplete.
diff --git a/download b/download
index ec3d0fc..5fd996e 100755
--- a/download
+++ b/download
@@ -34,9 +34,9 @@ fi
# we want to clone if we are in the bootstrap git repo and clone does not exist yet
# we need to test for a .git in order not to clone after rsync if we are called in
# the inner autogen of the buid-repo based build
-if [ ! -d clone -a -d .git ] ; then
+if [ -d .git ] ; then
if [ -z "$GIT_LINK_SRC" ]; then
- ./g clone
+ ./g -f clone
else
# space-saving clone from another local workdir
mkdir clone
commit 4b427e32271a672551f2747cff1c1f01bde052f6
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Sun Dec 5 00:44:39 2010 -0600
g clone now tolerate silently already cloned repos.
diff --git a/g b/g
index 191daf7..dba698b 100755
--- a/g
+++ b/g
@@ -211,14 +211,15 @@ for REPO in $DIRS ; do
;;
esac
- [ "$REPORT_REPOS" = "1" ] && echo "===== $NAME ====="
-
# check for changes
HEADREF=$(git show-ref --head HEAD)
# do it!
- git $PAGER "$COMMAND" $EXTRA "${FILES[@]}"
- RETURN=$?
+ if [ "$COMMAND" != "clone" -o ! -d $DIR ] ; then
+ [ "$REPORT_REPOS" = "1" ] && echo "===== $NAME ====="
+ git $PAGER "$COMMAND" $EXTRA "${FILES[@]}"
+ RETURN=$?
+ fi
# now we can change the dir in case of clone as well
if [ "$COMMAND" = "clone" ] ; then
More information about the Libreoffice-commits
mailing list