diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-05-15 08:19:03 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-05-15 08:19:03 +0000 |
commit | 980e2637ea80da01413239842c771329a8068791 (patch) | |
tree | 72a260b1ce31be7812c754c88224cb435befcd35 /dist/s_whitespace | |
parent | 5b028e6ea6fa96316072180c808caa72e65056e4 (diff) | |
download | mongo-980e2637ea80da01413239842c771329a8068791.tar.gz |
Make the whitespace script run on the examples, utilities extension code.
Diffstat (limited to 'dist/s_whitespace')
-rw-r--r-- | dist/s_whitespace | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/dist/s_whitespace b/dist/s_whitespace index 2e2c2863b4c..2e4382b0645 100644 --- a/dist/s_whitespace +++ b/dist/s_whitespace @@ -4,13 +4,24 @@ t=__wt.$$ trap 'rm -f $t; exit 0' 0 1 2 3 13 15 -inc=`cd .. && echo dist/*.py dist/s_* src/include/*.[hi] src/include/*.in && - find test -name '*.[ch]' -print` - -for f in `sed -e '/^[a-z]/! d' filelist` $inc; do - f="../$f" +ws() +{ sed -e 's/[ ][ ]*$//' \ -e '/^$/N' \ - -e '/\n$/D' < $f > $t - cmp $t $f > /dev/null 2>&1 || (echo "$f" && cp $t $f) + -e '/\n$/D' < $1 > $t + cmp $t $1 > /dev/null 2>&1 || (echo "$1" && cp $t $1) +} + +cd .. + +for f in `find dist -name '*.py' -name 's_*'`; do + ws $f +done + +for f in `find examples ext src test \ + -name '*.[chi]' -o \ + -name '*.dox' -o \ + -name '*.in' -o \ + -name 'Makefile.am'`; do + ws $f done |