From 5296abe3aff8b92efc7b1c214a6cf7531942b696 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 5 Feb 2020 07:48:18 +0100 Subject: scripts: use last set tag if none given Makes 'delta' and 'contributors.sh' easier to use. Make the delta script invoke contrithanks to get current number of contributors instead of counting THANKS, for accuracy. Closes #4881 --- scripts/contributors.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts/contributors.sh') diff --git a/scripts/contributors.sh b/scripts/contributors.sh index a826595c9..0bb16ec00 100755 --- a/scripts/contributors.sh +++ b/scripts/contributors.sh @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2013-2019, Daniel Stenberg, , et al. +# Copyright (C) 2013-2020, Daniel Stenberg, , et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -29,10 +29,14 @@ start=$1 -if test -z "$start"; then +if test "$start" = "-h"; then echo "Usage: $0 [--releasenotes]" exit fi +if test -z "$start"; then + start=`git tag --sort=taggerdate | tail -1`; + echo "Since $start:" +fi # filter out Author:, Commit: and *by: lines # cut off the email parts -- cgit v1.2.3