Skip to content
Permalink
Browse files

Script from Sylvain to automate updating the copyright year

  • Loading branch information
slouken committed May 26, 2015
1 parent d88b673 commit c133c8c8a565540bbdc18cc1219ec6f5175e7af3
Showing with 9 additions and 0 deletions.
  1. +9 −0 build-scripts/update-copyright.sh
@@ -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

0 comments on commit c133c8c

Please sign in to comment.