1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-06 16:29:30 +00:00

Moved a constant expression out of a loop.

This commit is contained in:
Greg King 2022-04-17 15:08:42 -04:00
parent 86ca11222a
commit a4e1cf9a0a

View File

@ -8,8 +8,9 @@ cd $SCRIPT_PATH/../../
nl='
'
nl=$'\n'
r1="${nl}$"
FILES=`find $CHECK_PATH -type f \( -name \*.inc -o -name Makefile -o -name \*.cfg -o -name \*.\[chs\] -o -name \*.asm -o -name \*.sgml \) -print | while read f; do
t=$(tail -c2 $f; printf x); r1="${nl}$";
t=$(tail -c2 $f; printf x)
[[ ${t%x} =~ $r1 ]] || echo "$f"
done`