diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-08 09:55:38 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2016-01-08 09:55:38 +1100 |
commit | cfcef8c99908a781c1d5b4153f4fa9fca69d4351 (patch) | |
tree | e7a46cc49c7f8672ede75f1617f74de04a9eae7a /solenv/bin/mkdocs.sh | |
parent | 46e2258aab774c7454bd24053f9cbc7582f25a5f (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
Diffstat (limited to 'solenv/bin/mkdocs.sh')
-rwxr-xr-x | solenv/bin/mkdocs.sh | 4 |
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" |