[misc] Improve update copyright year script
[ci skip]
This commit is contained in:
parent
b3b72cbea2
commit
6d3833a4d4
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ YEAR=${1:-$(date +%Y)}
|
||||||
# is not generally installed
|
# is not generally installed
|
||||||
GREP=${2:-egrep}
|
GREP=${2:-egrep}
|
||||||
|
|
||||||
${GREP} -Rl 'Copyright.*Wiegley' . \
|
${GREP} -Rl 'Copyright.*Wiegley' $(git ls-files | cut -d / -f1 | uniq) \
|
||||||
| ${GREP} -v "(test/garbage-input.dat|$(basename $0))" \
|
| ${GREP} -v "(test/garbage-input.dat|$(basename $0))" \
|
||||||
| xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${YEAR}/"
|
| xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${YEAR}/"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue