mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
6ea1f8ee85
A complete list will be shown before make shows its error message. There will be less confusion about which lines are in the list.
19 lines
492 B
Bash
Executable File
19 lines
492 B
Bash
Executable File
#! /bin/bash
|
|
OLDCWD=`pwd`
|
|
SCRIPT_PATH=`dirname $0`
|
|
CHECK_PATH=.
|
|
|
|
cd $SCRIPT_PATH/../../
|
|
|
|
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 ' $'`
|
|
|
|
cd $OLDCWD
|
|
|
|
if [ x"$FILES"x != xx ]; then
|
|
echo "error: found dangling spaces in the following files:" >&2
|
|
for n in $FILES; do
|
|
echo $n >&2
|
|
done
|
|
exit -1
|
|
fi
|