Skip to content

Commit

Permalink
Script from Sylvain to automate updating the copyright year
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 26, 2015
1 parent d88b673 commit c133c8c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 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.