SDL_image: Make sure we include Get-GitModules.ps1 in the dist archive

From dac6ffdbe900b3c2579af79fd6ec74a4a6300c03 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 29 Nov 2023 19:35:26 -0800
Subject: [PATCH] Make sure we include Get-GitModules.ps1 in the dist archive

---
 Makefile.am | 2 +-
 Makefile.in | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 56f5ce1d..bb8ba737 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -103,7 +103,7 @@ rpm: $(PACKAGE)-$(VERSION).tar.gz
 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
 
 dist-hook:
-	ls $(distdir)/external | $(FGREP) -v download.sh | while read dir; do rm -rf "$(distdir)/external/$$dir"; done
+	ls $(distdir)/external | $(FGREP) -v download.sh | $(FGREP) -v Get-GitModules.ps1 | while read dir; do rm -rf "$(distdir)/external/$$dir"; done
 
 install-data-local:
 	$(MKDIR_P) $(DESTDIR)$(libdir)/cmake/SDL2_image
diff --git a/Makefile.in b/Makefile.in
index 1cdc27c1..884a489f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1597,7 +1597,7 @@ rpm: $(PACKAGE)-$(VERSION).tar.gz
 	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
 
 dist-hook:
-	ls $(distdir)/external | $(FGREP) -v download.sh | while read dir; do rm -rf "$(distdir)/external/$$dir"; done
+	ls $(distdir)/external | $(FGREP) -v download.sh $(FGREP) -v Get-GitModules.ps1 | while read dir; do rm -rf "$(distdir)/external/$$dir"; done
 
 install-data-local:
 	$(MKDIR_P) $(DESTDIR)$(libdir)/cmake/SDL2_image