summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-08 09:55:38 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-08 09:55:38 +1100
commitcfcef8c99908a781c1d5b4153f4fa9fca69d4351 (patch)
treee7a46cc49c7f8672ede75f1617f74de04a9eae7a
parent46e2258aab774c7454bd24053f9cbc7582f25a5f (diff)
solenv: allow mkdocs.sh to index selected modules only
I've added a test of the environment variable $INPUT_PROJECTS, if this exists then use the list of modules specified. If it doesn't exist then the script runs as normal and processes all modules. Change-Id: Ibafb826fa20a56d921e5ffacb0f5101ed936ae55
-rwxr-xr-xsolenv/bin/mkdocs.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/solenv/bin/mkdocs.sh b/solenv/bin/mkdocs.sh
index 24aeee4400d2..db3c7eb2418f 100755
--- a/solenv/bin/mkdocs.sh
+++ b/solenv/bin/mkdocs.sh
@@ -115,7 +115,9 @@ shopt -s nullglob
DOXYGEN_PROJECT_PREFIX="LibreOffice"
# get list of modules
-INPUT_PROJECTS="`ls */Module_*.mk | sed 's#/.*##'`"
+if [ -z "$INPUT_PROJECTS" ]; then
+ INPUT_PROJECTS="`ls */Module_*.mk | sed 's#/.*##'`"
+fi
# output directory for generated documentation
BASE_OUTPUT="$1"