1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-08 11:31:34 +00:00

Make lastline.sh ignore empty files. Fixes #2514.

This commit is contained in:
Kugel Fuhr 2024-09-12 09:10:37 +02:00
parent aff8248341
commit 36a810cdb2
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ nl='
'
nl=$'\n'
r1="${nl}$"
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 | while read f; do
FILES=`find $CHECK_PATH -type f -size +0 \( -name \*.inc -o -name Makefile -o -name \*.cfg -o -name \*.\[chs\] -o -name \*.mac -o -name \*.asm -o -name \*.sgml \) -print | while read f; do
t=$(tail -c2 $f; printf x)
[[ ${t%x} =~ $r1 ]] || echo "$f"
done`

2
.gitignore vendored
View File

@ -9,4 +9,4 @@
/cc65.zip
/util/atari/*.exe
/util/gamate/*.exe
targettest/cbm/cbmread.prg