From nobody Tue Aug 22 01:37:54 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RVBmy4VdZz4YlRP; Tue, 22 Aug 2023 01:37:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RVBmy3z1jz3Vsm; Tue, 22 Aug 2023 01:37:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692668274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=95XXifqiTF9XFJ6X//DgRs9pa++I3bgJg4JX7UGotuE=; b=FVRVei6Lht7WJv8Hgg3rrW0ucQzqK5OE73lUXisIJ7uipu0TALoGz2KgeoEgb/svATVVZ0 SU6jVFHuf81dmPwN68JJM7ZmXb1zo1lFZ33zBvEnDD4a4G9JqKayhO/sFN234KjMGuekVY 80IEID7maM6uk8JocVRGsnVakLZGSadnIjWHgbdcvhTq/K314kAM0Bk4IvTMClWxaQ/BWy O9Wb1QjVQd6mEbJgHCRBq8PmTWqEVV0n5louwNHFu2bh1RbAENk6BDhcgl96SR4WyWx3uk Q88QvKNy6nQjeienCQl1yjuihKGl3WiOnCzQuu5y74TcWbIDkRFpMup1w0iNtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1692668274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=95XXifqiTF9XFJ6X//DgRs9pa++I3bgJg4JX7UGotuE=; b=uhmOKHz9LsPejNaWPtmBUGIX7VQb8mNCP/fU7GxpAM7pl0Zhf7eAlv9dPJdWQPI1F5xJvk ZjrHJkYXOFANuJQz9G9JZXVfWaup95Hsij//TwGIBGNSFVfM796GHaucATKnpJJhsa9l+l 20Xs9T+NXCBExr7W1JbJyPVifj4ap8XwbnkDwtQ7ySNBX7T7ZimSD3G3ccPRUXLXbqaK+c EmbJWgwln2MTlqImsIeWQlzEfH7PSy8mSJZehJu70jDf1I5EaQeESnu3i/BvMxhEg+zKXU p5bCnLgHrz3wntECU+GCfNFsOkK41pBRIMiX/UwGP4fA42dc6gxzYg7EXJzuLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1692668274; a=rsa-sha256; cv=none; b=JMJvmR6Y4gGc0rSnRSV2D23y3ck5Pfu0Mdq5y/0Hsx+JpOYZfSp+gNLc2LFTdGjHzUAgqn 43sfM/Z9MHOzL2QFRNFm3pjTBc0356AjAZ6eDyTh51BAs4P4NKFuZptWKm93P5Y2YNjRhH Brq7jcpfY3shChc+k/Zvm3XfCho182MeSdB6PeN5VAFaIkfw6XH3wP0n5VkgyMAO3YVCks 9EWuFYuFnZPuDy2Z7xiEI60NJOFYN7IZUiMsqw+GwXxIMrQQGqrG2l2mCPzCALddOccVUi inroLQrfzSZamXNOqjEpYfmDSQyaDUNUU5CI8pGWkSNamZXgcdHgD1kz5fPQcw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RVBmy324JzkRY; Tue, 22 Aug 2023 01:37:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 37M1bsKS043722; Tue, 22 Aug 2023 01:37:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 37M1bsUM043719; Tue, 22 Aug 2023 01:37:54 GMT (envelope-from git) Date: Tue, 22 Aug 2023 01:37:54 GMT Message-Id: <202308220137.37M1bsUM043719@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: b376ef36f569 - main - Update freebsd-yeet for mfc List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b376ef36f569c85cbd135349b6e8b9737bba5d2a Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=b376ef36f569c85cbd135349b6e8b9737bba5d2a commit b376ef36f569c85cbd135349b6e8b9737bba5d2a Author: Warner Losh AuthorDate: 2023-08-22 01:37:13 +0000 Commit: Warner Losh CommitDate: 2023-08-22 01:37:20 +0000 Update freebsd-yeet for mfc --- tools/build/freebsd-yeet.pl | 86 +++++++++++++++++++++++++++++++++------------ 1 file changed, 63 insertions(+), 23 deletions(-) diff --git a/tools/build/freebsd-yeet.pl b/tools/build/freebsd-yeet.pl old mode 100644 new mode 100755 index ee7f27f81637..33466a5c1094 --- a/tools/build/freebsd-yeet.pl +++ b/tools/build/freebsd-yeet.pl @@ -1,3 +1,5 @@ +#!/usr/local/bin/perl +# # Remove almost all of the $ FreeBSD $ tags in the tree. # # Copyright (c) 2023, Warner Losh @@ -39,13 +41,17 @@ my $pretty; my $pattern; my $repl; my $count; +my $syshash; +my $hash; sub do_one { $pretty = $_[0]; $pattern = $_[1]; $repl = ""; - $repl = $_[2] if defined($_[2]); + $repl = $_[2]; + $syshash = $_[3]; + $hash = $_[4]; $count = 0; sub findfiles @@ -73,35 +79,69 @@ sub do_one find({ wanted => \&findfiles, }, './sys'); if ($count > 0) { print "Changed $pretty\n"; - system("git commit -a -m'sys: Remove \$FreeBSD\$: $pretty\n\nRemove /$pattern/'"); + system("git commit -a -m'sys: Remove \$FreeBSD\$: $pretty\n\nRemove /$pattern/\n\nSimilar commit in current:\n(cherry picked from commit $syshash)'"); } $count = 0; find({ wanted => \&findfiles, }, '.'); if ($count > 0) { print "Changed $pretty\n"; - system("git commit -a -m'Remove \$FreeBSD\$: $pretty\n\nRemove /$pattern/'"); + system("git commit -a -m'Remove \$FreeBSD\$: $pretty\n\nRemove /$pattern/\n\nSimilar commit in main:\n(cherry picked from commit $hash)'"); } } +# These are the commits to head +# 9524e274b548 Remove $FreeBSD$: one-line xdr pattern +# 26a58599a09a Remove $FreeBSD$: one-line forth tag +# 401ab69cff8f Remove $FreeBSD$: one-line ps tag +# 6ef644f5889a Remove $FreeBSD$: one-line lua tag +# 9636a14538f5 Remove $FreeBSD$: two-line lua tag +# 8c99d94c900f sys: Remove $FreeBSD$: two-line lua tag +# ae992a336e8d Remove $FreeBSD$: one-line catalog +# 2063df147163 sys: Remove $FreeBSD$: one-line catalog +# 05248206f720 Remove $FreeBSD$: one-line bare tag +# 78d146160dc5 sys: Remove $FreeBSD$: one-line bare tag +# b2c76c41be32 Remove $FreeBSD$: one-line nroff pattern +# fa9896e082a1 Remove $FreeBSD$: two-line nroff pattern +# 9e7892125655 sys: Remove $FreeBSD$: two-line nroff pattern +# d0b2dbfa0ecf Remove $FreeBSD$: one-line sh pattern +# 031beb4e239b sys: Remove $FreeBSD$: one-line sh pattern +# b1cfcffa89e6 Remove $FreeBSD$: one-line .S pattern +# d4bf8003ee42 sys: Remove $FreeBSD$: one-line .S pattern +# c8573564095b Remove $FreeBSD$: alt one-line .c pattern +# da5432eda807 Remove $FreeBSD$: alt two-line .c pattern +# 1d386b48a555 Remove $FreeBSD$: one-line .c pattern +# 685dc743dc3b sys: Remove $FreeBSD$: one-line .c pattern +# e5d258c9e599 Remove $FreeBSD$: two-line .c pattern +# dfc016587a1e sys: Remove $FreeBSD$: two-line .c pattern +# 2a63c3be1582 Remove $FreeBSD$: one-line .c comment pattern +# 71625ec9ad2a sys: Remove $FreeBSD$: one-line .c comment pattern +# 42b388439bd3 Remove $FreeBSD$: one-line .h pattern +# 2ff63af9b88c sys: Remove $FreeBSD$: one-line .h pattern +# b3e7694832e8 Remove $FreeBSD$: two-line .h pattern +# 95ee2897e98f sys: Remove $FreeBSD$: two-line .h pattern +# d54a7d337331 Remove $FreeBSD$: one-line m4 tag +# 82a265ad9bad sys: Remove $FreeBSD$: sound driver version + # Note: Do two line before one line -do_one("sound driver version", 'SND_DECLARE_FILE\("\$FreeBSD\$"\);', 'SND_DECLARE_FILE("");'); -do_one("one-line m4 tag", '^dnl\s*\$FreeBSD\$.*$\n'); -do_one("two-line .h pattern", '^\s*\*\n \*\s+\$FreeBSD\$$\n'); -do_one("one-line .h pattern", '^\s*\*+\s*\$FreeBSD\$.*$\n'); -do_one("one-line .c comment pattern", '^/[*/]\s*\$FreeBSD\$.*\n'); -do_one("two-line .c pattern", '^#include\s+.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n'); -do_one("one-line .c pattern", '^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n'); -do_one("alt two-line .c pattern", '^\s*__RCSID\("\$FreeBSD\$"\);\n\n'); -do_one("alt one-line .c pattern", '^\s*__RCSID\("\$FreeBSD\$"\);\n'); -do_one("one-line .S pattern", '^\s\.(asciz|ident)\s+\"\$FreeBSD\$\".*\n'); -do_one("one-line sh pattern", '^\s*#[#!]?\s*\$FreeBSD\$.*$\n'); -do_one("two-line nroff pattern", '^\.\\\\"\n\.\\\\"\s*\$FreeBSD\$$\n'); -do_one("one-line nroff pattern", '^\.\\\\"\s*\$FreeBSD\$$\n'); -do_one("one-line bare tag", '^\s*\$FreeBSD\$$\n'); -do_one("one-line catalog", '^\s*\$\s*\$FreeBSD\$$\n'); -do_one("two-line lua tag", '^--\n--\s*\$FreeBSD\$.*$\n'); -do_one("one-line lua tag", '^--\s*\$FreeBSD\$.*$\n'); -do_one("one-line ps tag", '^%\s*RCSID:\s*\$FreeBSD\$.*$\n'); -do_one("one-line forth tag", '^\\\\[\s*]*\$FreeBSD\$.*$\n'); -do_one("one-line xdr pattern", '^\s*%\s*__FBSDID\("\$FreeBSD\$"\);?\s*\n'); +# commit message pattern replacement or '' sys hash src hash +do_one("sound driver version", 'SND_DECLARE_FILE\("\$FreeBSD\$"\);', 'SND_DECLARE_FILE("");', '', '82a265ad9bad'); +do_one("one-line m4 tag", '^dnl\s*\$FreeBSD\$.*$\n', '', '', 'd54a7d337331'); +do_one("two-line .h pattern", '^\s*\*\n \*\s+\$FreeBSD\$$\n', '', '95ee2897e98f', 'b3e7694832e8'); +do_one("one-line .h pattern", '^\s*\*+\s*\$FreeBSD\$.*$\n', '', '2ff63af9b88c', '42b388439bd3'); +do_one("one-line .c comment pattern", '^/[*/]\s*\$FreeBSD\$.*\n', '', '71625ec9ad2a', '2a63c3be1582'); +do_one("two-line .c pattern", '^#include\s+.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n','', 'dfc016587a1e', 'e5d258c9e599'); +do_one("one-line .c pattern", '^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n', '', '685dc743dc3b', '1d386b48a555'); +do_one("alt two-line .c pattern", '^\s*__RCSID\("\$FreeBSD\$"\);\n\n', '', '', 'da5432eda807'); +do_one("alt one-line .c pattern", '^\s*__RCSID\("\$FreeBSD\$"\);\n', '', '', 'c8573564095b'); +do_one("one-line .S pattern", '^\s\.(asciz|ident)\s+\"\$FreeBSD\$\".*\n', '', 'd4bf8003ee42', 'b1cfcffa89e6'); +do_one("one-line sh pattern", '^\s*#[#!]?\s*\$FreeBSD\$.*$\n', '', '031beb4e239b', 'd0b2dbfa0ecf'); +do_one("two-line nroff pattern", '^\.\\\\"\n\.\\\\"\s*\$FreeBSD\$$\n', '', '9e7892125655', 'fa9896e082a1'); +do_one("one-line nroff pattern", '^\.\\\\"\s*\$FreeBSD\$$\n', '', '', 'b2c76c41be32'); +do_one("one-line bare tag", '^\s*\$FreeBSD\$$\n', '', '78d146160dc5', '05248206f720'); +do_one("one-line catalog", '^\s*\$\s*\$FreeBSD\$$\n', '', '2063df147163', 'ae992a336e8d'); +do_one("two-line lua tag", '^--\n--\s*\$FreeBSD\$.*$\n', '', '8c99d94c900f', '9636a14538f5'); +do_one("one-line lua tag", '^--\s*\$FreeBSD\$.*$\n', '', '', '6ef644f5889a'); +do_one("one-line ps tag", '^%\s*RCSID:\s*\$FreeBSD\$.*$\n', '', '', '401ab69cff8f'); +do_one("one-line forth tag", '^\\\\[\s*]*\$FreeBSD\$.*$\n', '', '', '26a58599a09a'); +do_one("one-line xdr pattern", '^\s*%\s*__FBSDID\("\$FreeBSD\$"\);?\s*\n', '', '', '9524e274b548'); exit;