#!/usr/bin/env sh # Check missing references extension for proper functioning. set +ex +o pipefail DOCS=$(dirname $(dirname $0)) # Test first by writing the missing references file git checkout $DOCS/conf.py git checkout lib git apply - < .test-missing-references/$1); then EXITCODE=$? echo "" echo "exit code = $EXITCODE" echo "" else echo "" echo "exit code = 0" echo "" fi popd } echo "Create the missing reference file..." run_sphinx sphinx.record.log # Reset and check that the th missing reference file doesn't result in errors git checkout $DOCS/conf.py git apply - <