[Bf-blender-cvs] [2c3c8fb] blender-v2.77-release: Docs: early exist build process on error

Campbell Barton noreply at git.blender.org
Fri Mar 4 17:35:42 CET 2016


Commit: 2c3c8fbaed0fe4b603cd8bd911b80ac9afc42657
Author: Campbell Barton
Date:   Sun Feb 28 04:24:22 2016 +1100
Branches: blender-v2.77-release
https://developer.blender.org/rB2c3c8fbaed0fe4b603cd8bd911b80ac9afc42657

Docs: early exist build process on error

Don't attempt to build docs when generation fails.

===================================================================

M	doc/python_api/sphinx_doc_gen.sh

===================================================================

diff --git a/doc/python_api/sphinx_doc_gen.sh b/doc/python_api/sphinx_doc_gen.sh
index 8f1791d..697cd5a 100755
--- a/doc/python_api/sphinx_doc_gen.sh
+++ b/doc/python_api/sphinx_doc_gen.sh
@@ -54,7 +54,17 @@ SPHINXBASE=doc/python_api
 
 if $DO_EXE_BLENDER ; then
 	# dont delete existing docs, now partial updates are used for quick builds.
-	$BLENDER_BIN --background -noaudio --factory-startup --python $SPHINXBASE/sphinx_doc_gen.py
+	$BLENDER_BIN \
+		--background \
+		-noaudio \
+		--factory-startup \
+		--python-exit-code 1 \
+		--python $SPHINXBASE/sphinx_doc_gen.py
+
+	if (($? == 1)) ; then
+		echo "Generating documentation failed, aborting"
+		exit 1
+	fi
 fi




More information about the Bf-blender-cvs mailing list