From e1c272704de130e8397a17fae6712247123cf248 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Thu, 25 Jun 2009 23:48:40 +0200 Subject: Split build: Script to clone the rest of the repositories. * download: --- download | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100755 download (limited to 'download') diff --git a/download b/download new file mode 100755 index 000000000000..c68ba5d89193 --- /dev/null +++ b/download @@ -0,0 +1,64 @@ +#!/bin/bash +# +# Clone the rest of the remote repositories to have the complete ooo-build +# sources + +usage() { + cat 1>&2 <&2 + echo 1>&2 + usage +fi + +# skip the repo where we are +SKIP="$SKIP,`echo $ORIGIN | sed 's#.*/\([^/]\+\)/\?$#\1#'`" + +# do the work +for DIR in $COMPONENTS +do + # skip? + ( echo "$SKIP" | grep "\<$DIR\>" > /dev/null 2>&1 ) && continue + # already cloned? + [ -d ../$DIR ] && { echo "* Not clonnig $DIR, already exists" ; continue ; } + + # clone! + echo "* Cloning $DIR..." + ( cd .. ; git clone "$REPO/$DIR" ) +done -- cgit