2022-04-16 18:00:10 +00:00
|
|
|
#! /bin/bash
|
|
|
|
OLDCWD=`pwd`
|
|
|
|
SCRIPT_PATH=`dirname $0`
|
2022-04-17 15:12:52 +00:00
|
|
|
CHECK_PATH=.
|
|
|
|
|
2022-04-16 18:00:10 +00:00
|
|
|
cd $SCRIPT_PATH/../../
|
|
|
|
|
2022-04-17 23:06:35 +00:00
|
|
|
FILES=`find $CHECK_PATH -type f \( -name \*.inc -o -name Makefile -o -name \*.cfg -o -name \*.\[chs\] -o -name \*.mac -o -name \*.asm -o -name \*.sgml \) -print | grep -v "libwrk/" | grep -v "testwrk/" | xargs grep -l ' $'`
|
2022-04-16 18:00:10 +00:00
|
|
|
|
|
|
|
cd $OLDCWD
|
|
|
|
|
|
|
|
if [ x"$FILES"x != xx ]; then
|
2022-04-18 23:25:48 +00:00
|
|
|
echo "error: found dangling spaces in the following files:" >&2
|
2022-04-16 18:00:10 +00:00
|
|
|
for n in $FILES; do
|
2022-04-18 23:25:48 +00:00
|
|
|
echo $n >&2
|
2022-04-16 18:00:10 +00:00
|
|
|
done
|
|
|
|
exit -1
|
|
|
|
fi
|