build-scripts/update-copyright.sh
changeset 9618 5eec9af4374c
child 10000 acd714e378f4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build-scripts/update-copyright.sh	Tue May 26 06:27:12 2015 -0700
@@ -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