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 6E0F847F48 for ; Wed, 6 Dec 2023 19:45:57 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3A4C968C14E; Wed, 6 Dec 2023 21:45:54 +0200 (EET) Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4CCF968AB9C for ; Wed, 6 Dec 2023 21:45:48 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 9E36520004 for ; Wed, 6 Dec 2023 19:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1701891947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5bOB5gNAQyujVJ9dqmwdToiYGqx8Z/dF0UMNQ1+++HU=; b=CeEBadXaT+yApk4maGIBD0oyxx0NdPq1m7I2tF8BM2oATZpH0p1FePst8Zy1bW8QXFe8pP 4n9fNLtsB0P+CNeH2vBUwJk12oNw3rQvWmSplyBGAwFJVFW/NjktxUcsTq1zqiHQlHmvIQ h74zfArYEhr5hYf3QCl8ura5jbHbSfTtLnnyljarbqEEwHnGGAxwkLmTxfqFMQ6/YiipdF 7f+NREuoRLOw0BRUJ/t+0wAIOCe6oJx6FtM4Qz7TOLclulxR3fyrF/K8nZ46KyFTRfyIWP 9Db111pzTbtd7oji7xDuKkKsWFqBqI4k3YtDWOCvv3RVFSkN4hJXyAv4q03nmQ== Date: Wed, 6 Dec 2023 20:45:46 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20231206194546.GZ3543730@pb2> References: <20231123091424.25640-1-anton@khirnov.net> MIME-Version: 1.0 In-Reply-To: <20231123091424.25640-1-anton@khirnov.net> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [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: multipart/mixed; boundary="===============3396906574784177694==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============3396906574784177694== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mqFIw5kxnZvz5w7L" Content-Disposition: inline --mqFIw5kxnZvz5w7L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 23, 2023 at 10:14:23AM +0100, Anton Khirnov wrote: > --- > tools/general_assembly.pl | 20 +++++++++++++++++--- > 1 file changed, 17 insertions(+), 3 deletions(-) >=20 > 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; > =20 > +my @extra_members =3D ( > + # entries should be of the format > + # [ , , ], > + # ['Foo Bar', 'foo@bar', DateTime->new(year =3D> 8613, month =3D> 5,= day =3D> 22)], > +); > + > sub trim { my $s =3D shift; $s =3D~ s/^\s+|\s+$//g; return $s }; > =20 > sub print_help { > @@ -29,7 +35,7 @@ sub print_help { > my $print_full =3D 1; > my $print_names =3D 0; > my $print_emails =3D 0; > -my $date =3D DateTime->now()->iso8601; > +my $date_str =3D DateTime->now()->iso8601; > my $help =3D 0; > =20 > GetOptions( > @@ -37,7 +43,7 @@ GetOptions( > "names" =3D> \$print_names, > "emails" =3D> \$print_emails, > "help" =3D> \$help, > - "date=3Ds" =3D> \$date, > + "date=3Ds" =3D> \$date_str, > "h" =3D> \$help, > ); > =20 > @@ -76,7 +82,8 @@ sub get_date_range { > return ($date_since, $date_until); > } > =20 > -my ($since, $until) =3D get_date_range(DateTime::Format::ISO8601->parse_= datetime($date)); > +my $date =3D DateTime::Format::ISO8601->parse_datetime($date_str); > +my ($since, $until) =3D get_date_range($date); > =20 > my @shortlog =3D split /\n/, decode('UTF-8', > `git log --pretty=3Dformat:"%aN <%aE>" --since=3D"$since" --until=3D= "$until" | sort | uniq -c | sort -r`, > @@ -108,6 +115,13 @@ foreach my $line (@shortlog) { > $assembly{$name} =3D $email; > } > =20 > +foreach my $entry (@extra_members) { > + my $elected =3D $entry->[2]; > + if ($date->is_between($elected, $elected->clone()->set_year($elected= ->year + 2))) { tools/general_assembly.pl Can't locate object method "is_between" via package "DateTime" at tools/gen= eral_assembly.pl line 75. is_between seems to have been added in 1.52 2020-02-29 So this is unavailable in several distros, it works with cpan though but this shoould be docuemnted if it cannot be avoided thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Concerning the gods, I have no means of knowing whether they exist or not or of what sort they may be, because of the obscurity of the subject, and the brevity of human life -- Protagoras --mqFIw5kxnZvz5w7L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZXDPWwAKCRBhHseHBAsP q/pXAJ9ll8bhH7tEVoXkeY6kZ+CGdWz1jgCcCEIN0lYA2eY07LFQ9w7MgqahkZI= =6+D8 -----END PGP SIGNATURE----- --mqFIw5kxnZvz5w7L-- --===============3396906574784177694== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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". --===============3396906574784177694==--