From: Evan Hunt Date: Mon, 24 Apr 2017 00:03:33 +0000 (-0700) Subject: [master] recent_changes script could terminate too early X-Git-Tag: v9.12.0a1~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58502352f20caf2c9363ca8c4f7dbe141bd98e98;p=thirdparty%2Fbind9.git [master] recent_changes script could terminate too early --- diff --git a/OPTIONS b/OPTIONS deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/util/recent_changes.sh b/util/recent_changes.sh index a899575a0be..f7007729792 100644 --- a/util/recent_changes.sh +++ b/util/recent_changes.sh @@ -6,18 +6,15 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -# $Id$ - # Find the list of files that have been touched in the Git repository # during the current calendar year. This is done by walking backwards # through the output of "git whatchanged" until a year other than the # current one is seen. Used by merge_copyrights. thisyear=`date +%Y` -git whatchanged --pretty="date %ai" --date=iso8601 | awk -v re="${thisyear}-" ' +when="`expr $thisyear - 1`-12-31" +git whatchanged --since="$when" --pretty="" | awk ' BEGIN { change=0 } - $1 == "date" && $2 !~ re { exit(0); } - $1 == "date" { next; } NF == 0 { next; } $(NF-1) ~ /[AM]/ { print "./" $NF; change=1 } END { if (change) print "./COPYRIGHT" } ' | sort | uniq