mirror of
https://github.com/cc65/cc65.git
synced 2024-10-20 08:24:29 +00:00
17 lines
489 B
Bash
17 lines
489 B
Bash
|
#! /bin/bash
|
||
|
OLDCWD=`pwd`
|
||
|
SCRIPT_PATH=`dirname $0`
|
||
|
cd $SCRIPT_PATH/../../
|
||
|
|
||
|
FILES=`find $CHECK_PATH -type f \( \( -name \*.inc -a \! -name Makefile.inc \) -o -name \*.cfg -o -name \*.c -o -name \*.s -o -name \*.h -o -name \*.asm -o -name \*.sgml \) -print | xargs grep -l ' $' | grep -v "libwrk/" | grep -v "testwrk/"`
|
||
|
|
||
|
cd $OLDCWD
|
||
|
|
||
|
if [ x"$FILES"x != xx ]; then
|
||
|
echo "error: found dangling spaces in the following files:"
|
||
|
for n in $FILES; do
|
||
|
echo $n
|
||
|
done
|
||
|
exit -1
|
||
|
fi
|