diff options
Diffstat (limited to 'src/contrib/SDL-3.2.20/build-scripts/update-copyright.sh')
-rwxr-xr-x | src/contrib/SDL-3.2.20/build-scripts/update-copyright.sh | 15 |
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 | |||
3 | if [ "$SED" = "" ]; then | ||
4 | if type gsed >/dev/null; then | ||
5 | SED=gsed | ||
6 | else | ||
7 | SED=sed | ||
8 | fi | ||
9 | fi | ||
10 | |||
11 | find . -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"; \ | ||
15 | done | ||