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:
parent
aff8248341
commit
36a810cdb2
2
.github/checks/lastline.sh
vendored
2
.github/checks/lastline.sh
vendored
@ -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
2
.gitignore
vendored
@ -9,4 +9,4 @@
|
||||
/cc65.zip
|
||||
/util/atari/*.exe
|
||||
/util/gamate/*.exe
|
||||
|
||||
targettest/cbm/cbmread.prg
|
||||
|
Loading…
x
Reference in New Issue
Block a user