diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2013-06-21 13:31:37 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2013-06-21 13:36:33 +0200 |
commit | aa1a988c7403cac81638c195b753fab7ac3600f9 (patch) | |
tree | 98ae761cb8cd1edcbedd56a49973ca4a265cfef4 /configure.ac | |
parent | 699180768bf600d646f8652c3fff886bcf052891 (diff) |
Reintroduce --with-linked-git option
With slightly different semantics:
Instead of pointing at a previous checkout,
point at base directory of all repos.
Change-Id: I254ecc33071be53067c44610b030f737cf75a7ee
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c7e64387ea13..b9810f36f2e0 100644 --- a/configure.ac +++ b/configure.ac @@ -1238,6 +1238,13 @@ AC_ARG_WITH(referenced-git, GIT_REFERENCE_SRC=$withval , ) +AC_ARG_WITH(linked-git, + AS_HELP_STRING([--with-linked-git=<submodules repo basedir>], + [Specify a directory where the repositories of submodules are located. + This uses a method similar to git-new-workdir to get submodules.]), + GIT_LINK_SRC=$withval , +) + AC_ARG_WITH(galleries, AS_HELP_STRING([--with-galleries], [Specify how galleries should be built. It is possible either to @@ -11616,6 +11623,17 @@ if test -n "${GIT_REFERENCE_SRC}"; then fi AC_SUBST(GIT_REFERENCE_SRC) +dnl git submodules linked dirs +dnl =================================================================== +if test -n "${GIT_LINK_SRC}"; then + for repo in ${GIT_NEEDED_SUBMODULES}; do + if ! test -d "${GIT_LINK_SRC}"/${repo}; then + AC_MSG_ERROR([linked git: required repository does not exist: ${GIT_LINK_SRC}/${repo}]) + fi + done +fi +AC_SUBST(GIT_LINK_SRC) + dnl branding dnl =================================================================== AC_MSG_CHECKING([for alternative branding images directory]) |