From e8b2b36eca1731183dc5522d32386dff27401bbd Mon Sep 17 00:00:00 2001 From: Peter M. Groen Date: Thu, 21 Apr 2022 16:19:33 +0200 Subject: [PATCH] Added logger as submodule. --- scripts/setup_submodules | 19 ++++++++++++++----- scripts/submodules.list | 6 ++++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/scripts/setup_submodules b/scripts/setup_submodules index b8c7a6e..0aad384 100755 --- a/scripts/setup_submodules +++ b/scripts/setup_submodules @@ -3,7 +3,9 @@ # =============================================== # == Setting some environment variables # =============================================== -GIT_URL_SUBS="http://gitlab.osdev.nl/open_source" +GIT_URL_OPEN="http://gitlab.osdev.nl/open_source" +GIT_URL_CLOSED="git@gitlab.osdev.nl:closed_source" + FUNC_RESULT="-1" # Name : print_usage_exit() @@ -98,12 +100,19 @@ function read_submodules() function add_submodules() { echo -e "Adding SubModule(s)." - for SUB_MODULE in ${SUB_MODULES} + for SUB_MODULE in ${SUB_MODULES_OPEN} do - echo -e "< ${SUB_MODULE} >" - git submodule add -f ${GIT_URL_SUBS}/${SUB_MODULE}.git ${SUB_MODULE} - git config submodule.${SUB_MODULE}.url ${GIT_URL_SUBS}/${SUB_MODULE}.git + git submodule add -f ${GIT_URL_OPEN}/${SUB_MODULE}.git submodules/${SUB_MODULE} + git config submodule.${SUB_MODULE}.url ${GIT_URL_OPEN}/${SUB_MODULE}.git + done + + for SUB_MODULE in ${SUB_MODULES_CLOSED} + do + echo {GIT_URL_CLOSED}/${SUB_MODULE}.git + git submodule add -f ${GIT_URL_CLOSED}/${SUB_MODULE}.git submodules/${SUB_MODULE} + git config submodule.${SUB_MODULE}.url ${GIT_URL_CLOSED}/${SUB_MODULE}.git done + } # Name : get_submodules diff --git a/scripts/submodules.list b/scripts/submodules.list index 109e69b..a05b06e 100644 --- a/scripts/submodules.list +++ b/scripts/submodules.list @@ -1,2 +1,4 @@ -SUB_MODULES="versioning -cmake" +SUB_MODULES_OPEN="cmake +logger" + +SUB_MODULES_CLOSED="" -- libgit2 0.21.4