1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +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 committed by mrdudz
parent 17b9f9c2a8
commit 1ea27c35d0

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`