From 6d3833a4d4c9bf157acea2eb30114c4a06f08b62 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sat, 27 Jan 2018 15:29:38 +0800 Subject: [misc] Improve update copyright year script [ci skip] --- tools/update_copyright_year.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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}/" -- cgit v1.2.3