
# Include directory
find src/openms/include/ | xargs perl tools/spellcheck/lspell2.pl /dev/null   | cut -f 2 -d ":" |  sed -e 's/^[ \t]*//' | sort -f | uniq > stop1.txt
cat stop1.txt tools/spellcheck/correct_words.txt > stop2.txt
find  ./src/openms/include/OpenMS/ | xargs perl tools/spellcheck/lspell.pl stop2.txt > badwords

# Documentation directory
find src/openms/include/ src/openms/source/ | xargs \
  perl tools/spellcheck/lspell2.pl /dev/null | cut -f 2 -d ":" | sed -e 's/^[ \t]*//' | sort -f | uniq > stop1_large.txt
cat stop1_large.txt tools/spellcheck/correct_words.txt > stop2_large.txt
find  ./doc/ | grep -v "doxygen.images" | grep -v png | xargs  \
  perl tools/spellcheck/lspell.pl stop2_large.txt  > badwords_doxygen

# Source directory
# GzipIfstream contains many funny crc codes
find  ./src/openms/source/ | grep -v GzipIfstream |  xargs  \
  perl tools/spellcheck/lspell.pl stop2_large.txt  > badwords_source

# find docu errors
grep -R ';[ ]*//' OpenMS/ | grep -v '///<' | grep -v '=' | grep -v using | grep -v return | grep -v '}' | grep -v Corasick | grep -v PeptideIndex | grep -v ProteinRes | grep -v Morpholo | grep -v IDFilter | grep -v SpectraMer > docu_errors

