diff options
Diffstat (limited to 'jjb')
-rwxr-xr-x | jjb/releng/docu-build-new.sh | 31 | ||||
-rw-r--r-- | jjb/releng/releng.yml | 4 |
2 files changed, 33 insertions, 2 deletions
diff --git a/jjb/releng/docu-build-new.sh b/jjb/releng/docu-build-new.sh new file mode 100755 index 000000000..0062f8e17 --- /dev/null +++ b/jjb/releng/docu-build-new.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +clean() {{ +if [[ -d docs/output ]]; then +rm -rf docs/output +echo "cleaning up output directory" +fi +}} + +trap clean EXIT TERM INT SIGTERM SIGHUP + +directories=() +while read -d $'\n'; do + directories+=("$REPLY") +done < <(find docs/ -name 'index.rst' -printf '%h\n' | sort -u ) + +for dir in "${{directories[@]}}"; do +echo +echo "#############################" +echo "Building DOCS in ${{dir##*/}}" +echo "#############################" +echo + +if [[ ! -d docs/output/"${{dir##*/}}/" ]]; then + mkdir -p docs/output/"${{dir##*/}}/" +fi + +sphinx-build -b html -E -c docs/etc/ ""$dir"/" docs/output/"${{dir##*/}}/" + +done + diff --git a/jjb/releng/releng.yml b/jjb/releng/releng.yml index 40e5b6650..c24fcb065 100644 --- a/jjb/releng/releng.yml +++ b/jjb/releng/releng.yml @@ -77,5 +77,5 @@ pattern: 'jjb/**' builders: - - shell: | - echo "Documentation generation logic goes here" + - shell: + !include-raw docu-build-new.sh |