Skip to content

Latest commit

 

History

History
executable file
·
8 lines (7 loc) · 266 Bytes

update-copyright.sh

File metadata and controls

executable file
·
8 lines (7 loc) · 266 Bytes
 
1
2
3
4
#!/bin/sh
find . -type f -exec grep -Il "Copyright" {} \; \
| grep -v \.hg \
Jan 2, 2017
Jan 2, 2017
5
| while read file; \
Jan 2, 2017
Jan 2, 2017
7
LC_ALL=C sed -b -i "s/\(.*Copyright.*\)[0-9]\{4\}\( *Sam Lantinga\)/\1`date +%Y`\2/" "$file"; \