]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[v9_10] recent_changes script could terminate too early
authorEvan Hunt <each@isc.org>
Mon, 24 Apr 2017 00:06:52 +0000 (17:06 -0700)
committerEvan Hunt <each@isc.org>
Mon, 24 Apr 2017 00:06:52 +0000 (17:06 -0700)
(cherry picked from commit 58502352f20caf2c9363ca8c4f7dbe141bd98e98)

OPTIONS [deleted file]
util/recent_changes.sh

diff --git a/OPTIONS b/OPTIONS
deleted file mode 100644 (file)
index e69de29..0000000
index 729559557f7f2f70fa57f0420c0251b78e74c0ed..7963212aa517e108819d1c02d0b724549308a0eb 100644 (file)
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $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