build-scripts/update-copyright.sh
author Philipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 27 Jul 2016 20:47:08 +0200
changeset 10211 2e4c1b2fce79
parent 10000 acd714e378f4
permissions -rwxr-xr-x
Android: Updated a comment.

#!/bin/sh

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