#!/bin/sh - # # $Id: chk.str,v 1.2 2004/03/30 01:24:37 jtownsen Exp $ # # Check spelling in quoted strings. d=../.. [ -f $d/LICENSE ] || { echo 'FAIL: cannot find source distribution directory.' exit 1 } t1=__t1 sed -e '/^#include/d' \ -e '/revid/d' \ -e '/"/!d' \ -e 's/^[^"]*//' \ -e 's/%s/ /g' \ -e 's/[^"]*$//' \ -e 's/\\[nt]/ /g' `find $d -name '*.c' -o -name '*.cpp' -o -name '*.java'` | spell | sort | comm -23 /dev/stdin spell.ok > $t1 test -s $t1 && { cat $t1 echo "FAIL: found questionable spelling in strings." exit 1 } exit 0