From 4f8dd2d39d1d6c686d661e21fde6296b77dc322c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 9 Jan 2023 09:38:36 -0800
Subject: [PATCH] Speed up processing of update-copyright.sh
(cherry picked from commit 78ccadd5a22bd60c015598fa0abad92705d5ea0f)
---
build-scripts/update-copyright.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build-scripts/update-copyright.sh b/build-scripts/update-copyright.sh
index c69ec7293467..574d904253e9 100755
--- a/build-scripts/update-copyright.sh
+++ b/build-scripts/update-copyright.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-find . -type f -exec grep -Il "Copyright" {} \; \
+find . -type f \
| grep -v \.git \
| while read file; do \
LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \