From 36a810cdb23b903ca4f3771a94b3b9a2489e634a Mon Sep 17 00:00:00 2001 From: Kugel Fuhr <98353208+kugelfuhr@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:10:37 +0200 Subject: [PATCH 1/2] Make lastline.sh ignore empty files. Fixes #2514. --- .github/checks/lastline.sh | 2 +- .gitignore | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/checks/lastline.sh b/.github/checks/lastline.sh index d80d2fb57..d243a01e1 100755 --- a/.github/checks/lastline.sh +++ b/.github/checks/lastline.sh @@ -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` diff --git a/.gitignore b/.gitignore index 9112484b8..772a2f204 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,4 @@ /cc65.zip /util/atari/*.exe /util/gamate/*.exe - +targettest/cbm/cbmread.prg From 3f83cf81f3c62f91eeed4097f01a91fa020c2c02 Mon Sep 17 00:00:00 2001 From: Kugel Fuhr <98353208+kugelfuhr@users.noreply.github.com> Date: Fri, 13 Sep 2024 19:02:13 +0200 Subject: [PATCH 2/2] Revert the change to .gitignore so git status doesn't report a clean status as before. --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 772a2f204..9112484b8 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,4 @@ /cc65.zip /util/atari/*.exe /util/gamate/*.exe -targettest/cbm/cbmread.prg +