summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-3.2.20/build-scripts/update-copyright.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/contrib/SDL-3.2.20/build-scripts/update-copyright.sh')
-rwxr-xr-xsrc/contrib/SDL-3.2.20/build-scripts/update-copyright.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/contrib/SDL-3.2.20/build-scripts/update-copyright.sh b/src/contrib/SDL-3.2.20/build-scripts/update-copyright.sh
new file mode 100755
index 0000000..9bb46ea
--- /dev/null
+++ b/src/contrib/SDL-3.2.20/build-scripts/update-copyright.sh
@@ -0,0 +1,15 @@
1#!/bin/sh
2
3if [ "$SED" = "" ]; then
4 if type gsed >/dev/null; then
5 SED=gsed
6 else
7 SED=sed
8 fi
9fi
10
11find . -type f \
12| grep -v \.git \
13| while read file; do \
14 LC_ALL=C $SED -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
15done