etlegacy-libs/sdl2/build-scripts/update-copyright.sh

9 lines
266 B
Bash
Raw Normal View History

2016-01-04 12:19:39 +00:00
#!/bin/sh
find . -type f -exec grep -Il "Copyright" {} \; \
| grep -v \.hg \
2018-02-01 11:55:20 +00:00
| while read file; \
2016-01-04 12:19:39 +00:00
do \
2018-02-01 11:55:20 +00:00
LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \
2016-01-04 12:19:39 +00:00
done