Commit e8b2b36eca1731183dc5522d32386dff27401bbd

Authored by Peter M. Groen
1 parent 8bf44a9d

Added logger as submodule.

scripts/setup_submodules
... ... @@ -3,7 +3,9 @@
3 3 # ===============================================
4 4 # == Setting some environment variables
5 5 # ===============================================
6   -GIT_URL_SUBS="http://gitlab.osdev.nl/open_source"
  6 +GIT_URL_OPEN="http://gitlab.osdev.nl/open_source"
  7 +GIT_URL_CLOSED="git@gitlab.osdev.nl:closed_source"
  8 +
7 9 FUNC_RESULT="-1"
8 10  
9 11 # Name : print_usage_exit()
... ... @@ -98,12 +100,19 @@ function read_submodules()
98 100 function add_submodules()
99 101 {
100 102 echo -e "Adding SubModule(s)."
101   - for SUB_MODULE in ${SUB_MODULES}
  103 + for SUB_MODULE in ${SUB_MODULES_OPEN}
102 104 do
103   - echo -e "< ${SUB_MODULE} >"
104   - git submodule add -f ${GIT_URL_SUBS}/${SUB_MODULE}.git ${SUB_MODULE}
105   - git config submodule.${SUB_MODULE}.url ${GIT_URL_SUBS}/${SUB_MODULE}.git
  105 + git submodule add -f ${GIT_URL_OPEN}/${SUB_MODULE}.git submodules/${SUB_MODULE}
  106 + git config submodule.${SUB_MODULE}.url ${GIT_URL_OPEN}/${SUB_MODULE}.git
  107 + done
  108 +
  109 + for SUB_MODULE in ${SUB_MODULES_CLOSED}
  110 + do
  111 + echo {GIT_URL_CLOSED}/${SUB_MODULE}.git
  112 + git submodule add -f ${GIT_URL_CLOSED}/${SUB_MODULE}.git submodules/${SUB_MODULE}
  113 + git config submodule.${SUB_MODULE}.url ${GIT_URL_CLOSED}/${SUB_MODULE}.git
106 114 done
  115 +
107 116 }
108 117  
109 118 # Name : get_submodules
... ...
scripts/submodules.list
1   -SUB_MODULES="versioning
2   -cmake"
  1 +SUB_MODULES_OPEN="cmake
  2 +logger"
  3 +
  4 +SUB_MODULES_CLOSED=""
... ...