#!/bin/sh CODESPELL=${CODESPELL-codespell} # Make sure we run codespell from the top wx directory. cd `dirname "$0"`/../.. if ! command -v $CODESPELL > /dev/null; then echo "ERROR: codespell not available." >&2 exit 127 fi $CODESPELL \ -I misc/suppressions/codespell-words \ -x misc/suppressions/codespell-lines \ -S 'build/cmake/modules/cotire.cmake,docs/changes.txt,docs/changes_30.txt,*.png,*.ico,*.bmp,*.cur,docs/doxygen/images' \ README.md docs include interface rc=$? if [ $rc != 0 ]; then cat <& 2 exit $rc fi