From 912a8da23a387ec58803976a4cf0478565b2bb23 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.anjos@idiap.ch>
Date: Tue, 13 Dec 2016 17:37:47 +0100
Subject: [PATCH] Allow the user to pass a parameter to define database to
 download (see bob/bob.db.base#11)

---
 gitlab/build.sh | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/gitlab/build.sh b/gitlab/build.sh
index 6d45957..6e94d1e 100644
--- a/gitlab/build.sh
+++ b/gitlab/build.sh
@@ -1,12 +1,19 @@
 #!/usr/bin/env bash
-# Wed 21 Sep 2016 13:08:05 CEST
+# Tue 13 Dec 2016 17:36:51 CET
+
+# Parameters:
+#
+#   $1: database name to run the download command for. If unset, use "all"
+#
 
 source $(dirname ${0})/functions.sh
 
 run_cmd ./bin/buildout
 
+dbname=${1:-all}
+
 if [ -x ./bin/bob_dbmanage.py ]; then
-  run_cmd ./bin/bob_dbmanage.py all download --force;
+  run_cmd ./bin/bob_dbmanage.py ${dbname} download --force;
 fi
 
 if [ -d ./doc ]; then
-- 
GitLab