build_all.sh: add building document [1/1]

PD#SWPL-67525

Problem:
add building document

Solution:
add building document

Verify:
ad401_a113l

Signed-off-by: Kelvin Zhang <kelvin.zhang@amlogic.com>
Change-Id: If5f4bb8a41e1bbb8088a2789177c656b7d75ce58
diff --git a/build_all.sh b/build_all.sh
index 1a2f5e1..f4e0bf7 100755
--- a/build_all.sh
+++ b/build_all.sh
@@ -11,6 +11,7 @@
 
 BUILD_COMBINATION="$PWD/scripts/build_combination.txt"
 
+# Build all projects
 i=0
 while IFS= read -r LINE; do
 	[[ "$i" -ne 0 ]] && echo ""
@@ -22,3 +23,9 @@
 		source scripts/scp.sh
 	fi
 done < "$BUILD_COMBINATION"
+
+# Build and upload document
+if [[ "$SUBMIT_TYPE" == "daily" ]]; then
+	make docs
+	cd output/docs/html; find -type f -exec curl --ftp-create-dirs -T {} ftp://platform:platform@10.68.11.163:2222/Documents/Ecosystem/RTOS/rtos-sdk/{} \;; cd -
+fi