From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 377E64691F for ; Thu, 23 Nov 2023 09:15:07 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A245368CF2C; Thu, 23 Nov 2023 11:14:57 +0200 (EET) Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BCF8F68CF1E for ; Thu, 23 Nov 2023 11:14:49 +0200 (EET) Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 7AAE614AB for ; Thu, 23 Nov 2023 10:14:48 +0100 (CET) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id BWtQh55OxoVP for ; Thu, 23 Nov 2023 10:14:47 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 92E6510FE for ; Thu, 23 Nov 2023 10:14:47 +0100 (CET) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 42E013A0582 for ; Thu, 23 Nov 2023 10:14:41 +0100 (CET) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Nov 2023 10:14:23 +0100 Message-ID: <20231123091424.25640-1-anton@khirnov.net> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] tools/general_assembly: implement extra GA members X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --- tools/general_assembly.pl | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/tools/general_assembly.pl b/tools/general_assembly.pl index 4c3208ccac..3bf65f3405 100755 --- a/tools/general_assembly.pl +++ b/tools/general_assembly.pl @@ -13,6 +13,12 @@ use utf8; use DateTime; use DateTime::Format::ISO8601; +my @extra_members = ( + # entries should be of the format + # [ , , ], + # ['Foo Bar', 'foo@bar', DateTime->new(year => 8613, month => 5, day => 22)], +); + sub trim { my $s = shift; $s =~ s/^\s+|\s+$//g; return $s }; sub print_help { @@ -29,7 +35,7 @@ sub print_help { my $print_full = 1; my $print_names = 0; my $print_emails = 0; -my $date = DateTime->now()->iso8601; +my $date_str = DateTime->now()->iso8601; my $help = 0; GetOptions( @@ -37,7 +43,7 @@ GetOptions( "names" => \$print_names, "emails" => \$print_emails, "help" => \$help, - "date=s" => \$date, + "date=s" => \$date_str, "h" => \$help, ); @@ -76,7 +82,8 @@ sub get_date_range { return ($date_since, $date_until); } -my ($since, $until) = get_date_range(DateTime::Format::ISO8601->parse_datetime($date)); +my $date = DateTime::Format::ISO8601->parse_datetime($date_str); +my ($since, $until) = get_date_range($date); my @shortlog = split /\n/, decode('UTF-8', `git log --pretty=format:"%aN <%aE>" --since="$since" --until="$until" | sort | uniq -c | sort -r`, @@ -108,6 +115,13 @@ foreach my $line (@shortlog) { $assembly{$name} = $email; } +foreach my $entry (@extra_members) { + my $elected = $entry->[2]; + if ($date->is_between($elected, $elected->clone()->set_year($elected->year + 2))) { + $assembly{$entry->[0]} = $entry->[1]; + } +} + # generate the output string my @out_lines; foreach my $name (sort keys %assembly) { -- 2.42.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".