File: update-copyright.sh

package info (click to toggle)
libsdl2 2.0.5%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 58,388 kB
  • ctags: 25,049
  • sloc: ansic: 156,430; sh: 11,305; objc: 5,791; cpp: 5,594; perl: 1,146; makefile: 523; python: 53
file content (9 lines) | stat: -rwxr-xr-x 274 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
#!/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