My done was in the wrong place 30/1330/1
authorAric Gardner <agardner@linuxfoundation.org>
Wed, 26 Aug 2015 21:25:15 +0000 (17:25 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Wed, 26 Aug 2015 21:25:34 +0000 (17:25 -0400)
Change-Id: I9e74a8eb28a65b1dbd2c719d159e5364555f026a
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
jjb/releng/docu-build-new.sh

index 01827cb..cecd65c 100755 (executable)
@@ -19,17 +19,18 @@ while read -d $'\n'; do
 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
+  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##*/}}/"
+  sphinx-build -b html -E -c docs/etc/ ""$dir"/" docs/output/"${{dir##*/}}/"
+done
 
 # NOTE: make sure source parameters for GS paths are not empty.
 [[ $GERRIT_CHANGE_NUMBER =~ .+ ]]
@@ -75,5 +76,4 @@ while read -d $'\n'; do
           fi
 
 
-          done
 done