diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2018-01-27 15:29:38 +0800 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2018-01-27 15:30:49 +0800 |
commit | 6d3833a4d4c9bf157acea2eb30114c4a06f08b62 (patch) | |
tree | bb134a81470bcef41aac3053ebea97fd870eed8e /tools/update_copyright_year.sh | |
parent | b3b72cbea23a69bcbf7a30ca34471c72c07370e4 (diff) | |
download | fork-ledger-6d3833a4d4c9bf157acea2eb30114c4a06f08b62.tar.gz fork-ledger-6d3833a4d4c9bf157acea2eb30114c4a06f08b62.tar.bz2 fork-ledger-6d3833a4d4c9bf157acea2eb30114c4a06f08b62.zip |
[misc] Improve update copyright year script
[ci skip]
Diffstat (limited to 'tools/update_copyright_year.sh')
-rwxr-xr-x | tools/update_copyright_year.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/update_copyright_year.sh b/tools/update_copyright_year.sh index ea0a5d35..db9541d4 100755 --- a/tools/update_copyright_year.sh +++ b/tools/update_copyright_year.sh @@ -30,7 +30,7 @@ YEAR=${1:-$(date +%Y)} # is not generally installed 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))" \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${YEAR}/" |