Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3974283pxb; Mon, 27 Sep 2021 06:51:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrywCYbxUV4pc8A3IsGpX7CF3Fo19C6Pa7tMS9T+yANMPDQdc+TrsoKipjyRzstJ/UVqCF X-Received: by 2002:a17:902:a613:b0:13d:d95c:c892 with SMTP id u19-20020a170902a61300b0013dd95cc892mr15027plq.35.1632750666832; Mon, 27 Sep 2021 06:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632750666; cv=none; d=google.com; s=arc-20160816; b=qX+/2fWmR4hhglVgJWpAi8EKt7PebZ+3xQwlkx4QBtLEkJB/L+kpLmABoCkh7OX2v3 qlvu/yGzQqsffW1hvINEEgvwh9lSJm/5H28hpym0eGmoOHvj7KvuShLjVjTO+wK2yF0H tasdZobR80S012wUYgdTTcRd8eqLZE/lpeOYZINwOrIWArYAn1a/NKmBFNfJiMdVqO35 VkznEqTEDQ5Ua1uvUwKH/S8CCicsVcRcC4ugxrXN0LxgY2SYeBfKenADo/trgLq9PaiT FWpqk+Q3RCEIXrnjXPQyuenLVszPNxwwF5V8CJcsWbOkbGBQ3qaaMUYNQ9vwovrYr9Cq MrVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JKuESqTGh3rNd8DX2mWjfTLRDDTTusOQnWNhCBCVMck=; b=kawHGg/UbNQg2G1ZE1HgcVlOn0Pfopg0d3LF4qS/UGBfvUBcX09rLSa1dQx56SXLkE x4jPsMzRqr5qurmCg/olurotzqxct6dhscARKadJqlLgyniNfgK7SPiRo5B2NjLMeVgM Mqj9hvv2oN00TudXwSLbn7VDMnWhQxxbmTdP8NCBKcpqJ7Vxc+kJ7Dn/Nj1EHOyRmMnc V/lLeFqKBjhkd57gZceC99S1XFLXHK6F09qafyNEc8bnpDl6+DxlUYM1u8fW9zhLnNjS e+ykzSybffdZsR4QPKEI5djep0+yBqf5TSCqk8VFxaLBBHPG2wf1Rt5wvgp2kNbQkWJx a1lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XKg2Mvhj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 3si24857951pjn.15.2021.09.27.06.50.52; Mon, 27 Sep 2021 06:51:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XKg2Mvhj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234622AbhI0Nvf (ORCPT + 99 others); Mon, 27 Sep 2021 09:51:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:41820 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234585AbhI0Nvd (ORCPT ); Mon, 27 Sep 2021 09:51:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 90A0360F41; Mon, 27 Sep 2021 13:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632750595; bh=8xhgJ1VxubUEF7re8obYZLRRe6xW79b6UPbCJOr+N1U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XKg2Mvhj9NnmZarL2zGE5MA1ZOlXsHiNjUH272XMBQVCvWYLzwELRuI0VUqmFZ9lL HHWHz43SkGgz9LtVQKjYsQ/MgRBglqjzUBEX5QYnSl/hwHmS0YhLcILh5SH2YTPY6p QngucrUwQskbHIRALJanBUjlOH9Q/v/kuwmpMliYOpTlxid42oj99c/gWsmgcChWog QYZw+0iZ1yf2L3WAesvTm7IXa/PqHBA3JMRQo0fp5jdQJM9efl/L7VbD45yUmnR3/G g4D5+AoUyKKyGq0SyyUpfkZIGD1pppAc5ELIkRsXWHrd+SvjqRfnsW+eVvMP0HNap3 YKYbCjqSnK0eg== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1mUr0z-000Ajc-M8; Mon, 27 Sep 2021 15:49:53 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , "Jonathan Corbet" , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] scripts: get_abi.pl: update its documentation Date: Mon, 27 Sep 2021 15:49:51 +0200 Message-Id: <89fcd301e065ed86dfd8670725144b196266b6a4.1632750315.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current highlight schema is not working properly. So, use, instead, Pod::Text. While here, also update the copyright in order to reflect the latest changes and the e-mail I'm currently using. Signed-off-by: Mauro Carvalho Chehab --- See [PATCH 0/3] at: https://lore.kernel.org/all/cover.1632750315.git.mchehab+huawei@kernel.org/ scripts/get_abi.pl | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index d14f5cfc3138..4978163f5b16 100755 --- a/scripts/get_abi.pl +++ b/scripts/get_abi.pl @@ -1,10 +1,12 @@ #!/usr/bin/env perl # SPDX-License-Identifier: GPL-2.0 +BEGIN { $Pod::Usage::Formatter = 'Pod::Text::Termcap'; } + use strict; use warnings; use utf8; -use Pod::Usage; +use Pod::Usage qw(pod2usage); use Getopt::Long; use File::Find; use Fcntl ':mode'; @@ -47,7 +49,7 @@ GetOptions( ) or pod2usage(2); pod2usage(1) if $help; -pod2usage(-exitstatus => 0, -verbose => 2) if $man; +pod2usage(-exitstatus => 0, -noperldoc, -verbose => 2) if $man; pod2usage(2) if (scalar @ARGV < 1 || @ARGV > 2); @@ -923,18 +925,18 @@ B [--debug ] [--enable-lineno] [--man] [--help] [--search-string ] [] -Where can be: +Where B can be: =over 8 -B [SEARCH_REGEX] - search for [SEARCH_REGEX] inside ABI +B I - search for I inside ABI -B - output the ABI in ReST markup language +B - output the ABI in ReST markup language -B - validate the ABI contents +B - validate the ABI contents -B - existing symbols at the system that aren't - defined at Documentation/ABI +B - existing symbols at the system that aren't + defined at Documentation/ABI =back @@ -950,9 +952,9 @@ the Documentation/ABI directory. =item B<--rst-source> and B<--no-rst-source> The input file may be using ReST syntax or not. Those two options allow -selecting between a rst-compliant source ABI (--rst-source), or a +selecting between a rst-compliant source ABI (B<--rst-source>), or a plain text that may be violating ReST spec, so it requres some escaping -logic (--no-rst-source). +logic (B<--no-rst-source>). =item B<--enable-lineno> @@ -972,7 +974,7 @@ following bitmask: Show hints about possible definitions for the missing ABI symbols. Used only when B. -=item B<--search-string> [regex string] +=item B<--search-string> I Show only occurences that match a search string. Used only when B. @@ -1021,11 +1023,11 @@ $ scripts/get_abi.pl rest --dir Documentation/ABI/obsolete =head1 BUGS -Report bugs to Mauro Carvalho Chehab +Report bugs to Mauro Carvalho Chehab =head1 COPYRIGHT -Copyright (c) 2016-2019 by Mauro Carvalho Chehab . +Copyright (c) 2016-2021 by Mauro Carvalho Chehab . License GPLv2: GNU GPL version 2 . -- 2.31.1