summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2018-01-27 15:29:38 +0800
committerAlexis Hildebrandt <afh@surryhill.net>2018-01-27 15:30:49 +0800
commit6d3833a4d4c9bf157acea2eb30114c4a06f08b62 (patch)
treebb134a81470bcef41aac3053ebea97fd870eed8e
parentb3b72cbea23a69bcbf7a30ca34471c72c07370e4 (diff)
downloadfork-ledger-6d3833a4d4c9bf157acea2eb30114c4a06f08b62.tar.gz
fork-ledger-6d3833a4d4c9bf157acea2eb30114c4a06f08b62.tar.bz2
fork-ledger-6d3833a4d4c9bf157acea2eb30114c4a06f08b62.zip
[misc] Improve update copyright year script
[ci skip]
-rwxr-xr-xtools/update_copyright_year.sh2
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}/"