summaryrefslogtreecommitdiff
path: root/download
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2010-12-01 23:44:49 +0100
committerThorsten Behrens <tbehrens@novell.com>2010-12-02 00:13:48 +0100
commitfe6ed1e8bf1cb3762eaa7e2cd28f9dd7cb06f8e6 (patch)
tree96e0aff403611585692ab068017adefed956369c /download
parentf9eb714c78a78690d5de34ac2bb18930dc54a271 (diff)
Add with-linked-git and make repo list configurable
* adds --with-linked-git config option, that internally uses git-new-workdir * consolidates various repo lists into bin/repo-list, and use that to dynamically add l10n repo
Diffstat (limited to 'download')
-rwxr-xr-xdownload18
1 files changed, 14 insertions, 4 deletions
diff --git a/download b/download
index 690d82d8aacc..ec3d0fce8c88 100755
--- a/download
+++ b/download
@@ -26,14 +26,24 @@
#
#*************************************************************************
+# environment setup yet?
+if [ -z "$TARFILE_LOCATION" ]; then
+ . ./*[Ee]nv.[Ss]et.sh
+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
- ./g clone
-fi
-if [ -z "$TARFILE_LOCATION" ]; then
- . ./*[Ee]nv.[Ss]et.sh
+ if [ -z "$GIT_LINK_SRC" ]; then
+ ./g clone
+ else
+ # space-saving clone from another local workdir
+ mkdir clone
+ for i in $GIT_REPO_NAMES ; do
+ bin/git-new-workdir $GIT_LINK_SRC/$i clone/$i
+ done
+ fi
fi
if [ ! -d "$TARFILE_LOCATION" ]; then