1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
# 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
|