mirror of https://github.com/encounter/SDL.git
Script from Sylvain to automate updating the copyright year
This commit is contained in:
parent
d88b6738f0
commit
c133c8c8a5
|
@ -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
|
Loading…
Reference in New Issue