mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 15:09:59 -04:00
[v9_9] recent_changes script could terminate too early
(cherry picked from commit 58502352f2)
This commit is contained in:
parent
65d4abb881
commit
4d7cd16627
2 changed files with 2 additions and 5 deletions
0
OPTIONS
0
OPTIONS
|
|
@ -14,18 +14,15 @@
|
|||
# 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue