diff options
author | Keith Bostic <keith.bostic@wiredtiger.com> | 2011-06-10 13:41:45 -0400 |
---|---|---|
committer | Keith Bostic <keith.bostic@wiredtiger.com> | 2011-06-10 13:41:45 -0400 |
commit | 9153d815d88e298b7c91973d7d13f7859790a8f1 (patch) | |
tree | a732eccd968781e4e8792920d9cc6d0e8c18b72a /dist/s_string | |
parent | 81a129d2955c4f47c76c214247002513a7c140c6 (diff) | |
download | mongo-9153d815d88e298b7c91973d7d13f7859790a8f1.tar.gz |
Add spell checking for the source code.
Diffstat (limited to 'dist/s_string')
-rw-r--r-- | dist/s_string | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dist/s_string b/dist/s_string new file mode 100644 index 00000000000..a42f968a555 --- /dev/null +++ b/dist/s_string @@ -0,0 +1,23 @@ +#!/bin/sh - +# +# Check spelling in comments and quoted strings from the source files. + +t=__wt.$$ +trap 'rm -f $t; exit 0' 0 1 2 3 13 15 + +check() { + aspell --mode=ccpp --lang=en list < ../$1 | + sort -u | + comm -23 /dev/stdin s_string.ok > $t + test -s $t && { + echo "==== $1" + cat $t + } +} + +l="`cd .. && echo src/include/*.[hi] src/include/*.in`" +for i in $l `sed -e '/^[a-z]/! d' filelist`; do + check $i +done + +exit 0 |