#! /bin/sh t=__wt.$$ trap 'rm -f $t; exit 0' 0 1 2 3 13 15 # Skip this when building release packages: docs are built separately test -n "$WT_RELEASE_BUILD" && exit 0 # We require doxygen which may not be installed. type doxygen > /dev/null 2>&1 || { echo 'skipped: doxygen not found' exit 0 } . ../RELEASE e=0 changelog() { # convert the top-level NEWS file into a change log page in the docs (echo "WiredTiger Change Log" echo "=====================" echo cat ../NEWS) > ../src/docs/changelog.md } sectionchk() { # sections are a global name space for doxygen, and must be uniquely # named or you can get the wrong results. For example, if you have # "@section foo ABC" and "@section foo DEF", they will both appear as # "ABC" or "DEF". (cd ../src/docs && egrep -h '@section' *.dox | sort -u | awk '{ print $2 }' | sort | uniq -d) > $t test -s $t && { echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" echo '@section references that are not uniquely named' sed -e 's/^/ /' < $t echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" e=1 } } spellchk() { # If aspell has been installed, run a spell check. type aspell > /dev/null 2>&1 || return (cd ../src/docs && cat *.dox | aspell --lang=en --personal=./spell.ok list) | sort -u > $t test -s $t && { echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" echo 'Documentation spelling notes' echo 'Update src/docs/spell.ok to remove warnings.' sed -e 's/^/ /' < $t echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" e=1 } } valid_build() { # Complain if there are pages we don't reference directly. sed -n '/