From fe6ed1e8bf1cb3762eaa7e2cd28f9dd7cb06f8e6 Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Wed, 1 Dec 2010 23:44:49 +0100 Subject: 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 --- download | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'download') 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 -- cgit