aboutsummaryrefslogtreecommitdiff
path: root/bundles
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-11-11 19:00:14 +0200
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2013-11-11 19:00:14 +0200
commitab15d5108202e1ff8fe91204ce0dc419c45d48af (patch)
tree5823a38a87f2b15f742e17da65408331eccba906 /bundles
parentfb79304e946d7a9e7d85b8da3f97e0256af10c63 (diff)
create-bundle: Re-add repo exlcude support, needed for android.git.
Diffstat (limited to 'bundles')
-rwxr-xr-xbundles/create-bundle7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/create-bundle b/bundles/create-bundle
index 81a9595..a518a8b 100755
--- a/bundles/create-bundle
+++ b/bundles/create-bundle
@@ -21,6 +21,9 @@ BASE=/srv/repositories
# `/srv/repositories/foo/bar', just add `$BASE/foo/bar':
# SUBTREE="$BASE/lava $BASE/foo/bar"
SUBTREES="$BASE/lava"
+# grep pattern of repository paths to exclude
+#EXCLUDE="repo\.git"
+EXCLUDE=""
function create_bundle() {
git bundle create clone.bundle master 1>/dev/null
@@ -30,6 +33,10 @@ for repo_path in $SUBTREES
do
for repository in $(find $repo_path -type d -name "*.git" -prune)
do
+ if [ -n "$EXCLUDE" ] && echo $repository | grep -q $EXCLUDE; then
+ echo Skipping $repository
+ continue
+ fi
cd $repository
create_bundle
done