X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/55491279cdea3f01da22d1b51874e2e168ac5116..d6a9ae11bd2ff9b0bf30bf84cbedfe0438a5051e:/docs/Build.sh?ds=sidebyside diff --git a/docs/Build.sh b/docs/Build.sh index 6a150ef8eb..cc536cb689 100755 --- a/docs/Build.sh +++ b/docs/Build.sh @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash # # Simplistic script to rebuild our documentation with sphinx-build @@ -7,7 +7,8 @@ # Python needs to find simgrid on my machine, but not ctest -- sorry for the hack if [ -e /opt/simgrid ] ; then chmod +x /opt/simgrid; fi -set -e +set -ex +set -o pipefail if [ "x$1" != 'xdoxy' ] && [ -e build/xml ] ; then echo "Doxygen not rerun: 'doxy' was not provided as an argument" @@ -20,7 +21,17 @@ if [ "x$1" != 'xjava' ] && [ -e source/java ] ; then echo "javasphinx not rerun: 'java' was not provided as an argument" else rm -rf source/java - javasphinx-apidoc --force -o source/java/ ../src/bindings/java/org/simgrid/msg + + # Use that script without installing javasphinx: javasphinx-apidoc --force -o source/java/ ../src/bindings/java/org/simgrid/msg + PYTHONPATH=${PYTHONPATH}:source/_ext/javasphinx python3 - --force -o source/java/ ../src/bindings/java/org/simgrid/msg <&1 \ - | grep -v 'WARNING: cpp:identifier reference target not found: simgrid$' \ - | grep -v 'WARNING: cpp:identifier reference target not found: simgrid::s4u$' \ - | grep -v 'WARNING: cpp:identifier reference target not found: boost' +PYTHONPATH=../lib:source/_ext/javasphinx sphinx-build -M html source build ${SPHINXOPTS} 2>&1 set +x @@ -47,6 +55,7 @@ echo echo "Undocumented examples:" for ex in $( (cd .. ; \ find examples/s4u/ -name '*.cpp'; \ + find examples/c/ -name '*.c'; \ find examples/python -name '*.py'; \ ) | sort ) do