update-copyright.sh 274 B

123456789
  1. #!/bin/sh
  2. find . -type f -exec grep -Il "Copyright" {} \; \
  3. | grep -v \.hg \
  4. | while read i; \
  5. do \
  6. LC_ALL=C sed -ie "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$i"; \
  7. rm "${i}e"; \
  8. done