mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-15 15:58:13 +00:00
Script from Sylvain to automate updating the copyright year
This commit is contained in:
9
build-scripts/update-copyright.sh
Executable file
9
build-scripts/update-copyright.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
find . -type f -exec grep -Il "Copyright" {} \; \
|
||||
| grep -v \.hg \
|
||||
| while read i; \
|
||||
do \
|
||||
sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$i"; \
|
||||
rm "${i}e"; \
|
||||
done
|
Reference in New Issue
Block a user