build-scripts/update-copyright.sh
author Philipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 26 Jun 2016 21:08:57 +0200
changeset 10186 6c8e53149f0c
parent 10000 acd714e378f4
permissions -rwxr-xr-x
Mac: Fixed crash if SDL_GetDisplayDPI() got NULL pointers for output parameters.

#!/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