Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4748768pxy; Tue, 27 Apr 2021 11:40:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwh/ft2cuHw8DzL4XeHp0YI9cTv61XVNd0e1FK9As4hOE+dIArkXhgjKSvu8q1WHl8qFCCu X-Received: by 2002:a17:902:8344:b029:ed:4a5a:1953 with SMTP id z4-20020a1709028344b02900ed4a5a1953mr7668801pln.68.1619548837099; Tue, 27 Apr 2021 11:40:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619548837; cv=none; d=google.com; s=arc-20160816; b=qo7t78O5GH/e6deAUMPbyDHVuoaLFA+WuOk/UpheYkTyMmkkvVNbpa0TVCw+MUQiU4 2HKTNyl05fJGsbaVPtOG503dsAe55WbS7zI3NEwqE/AfFqIOftzH8YO05M/1mUhD0fOw XxfIBlS3TZUtQlZy3tchrpyMLEPniyyqb3gppXbqFPrAVUr5u286b9ufFrwJR1cEBJIS 7SRDyxIkGuUiRNNoxqMzAUwRv/sYJdRqYABXYKB4txcf6BszHdZDdA7bLYRyPW+kOmLc fYkqYjE2AW4zBka/k5UdOWRIW4ldmILnctg8fQ4NDsa3oAE1klg0Qy+gKmusgHG1w8rg jZLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=oCRMVV186uSw62DcDawtFrv1+3WOo3/0/rIg1lRTCzA=; b=YEQnkWtP6a+3/NnYqtdXxwkFgd0y5YdPR//YqV3Fw2AriUsSey7vAcSXwVl5PSZZYq X7m9sUbSrk2l1tWpuT8SnYfBdIYODq2Y7yhB5MnYgJ5VRy3QZzsbRE6HTX7T5OhQD0t+ BTXG5yLEa5emEmvRDMJh5oZ6SkujXnkAnkvQfDs5QKe4LjVyAAkvWY5Cy+NvgFUYRKbX E8w2D3/80elzPvre1CzhxO5QE4EsLjYoPS0hnCy5bdyvJDlN5aPkyTc7ey6z78DB7kVv VNobpAblCbfEmr1/haUfeMJGPEAe6NsZzZBv+Xx+UqFcmR4Z7tJBwR/WPtDZI5mSjvAt Z1QQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si780411pgu.92.2021.04.27.11.40.23; Tue, 27 Apr 2021 11:40:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238920AbhD0Skf convert rfc822-to-8bit (ORCPT + 99 others); Tue, 27 Apr 2021 14:40:35 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:60477 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236773AbhD0Ske (ORCPT ); Tue, 27 Apr 2021 14:40:34 -0400 Received: from smtpclient.apple (p4fefc624.dip0.t-ipconnect.de [79.239.198.36]) by mail.holtmann.org (Postfix) with ESMTPSA id 58D0ECED05; Tue, 27 Apr 2021 20:47:38 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Subject: Re: [BlueZ] monitor: Update manpage From: Marcel Holtmann In-Reply-To: <20210427174310.100632-1-hj.tedd.an@gmail.com> Date: Tue, 27 Apr 2021 20:39:49 +0200 Cc: linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: References: <20210427174310.100632-1-hj.tedd.an@gmail.com> To: Tedd Ho-Jeong An X-Mailer: Apple Mail (2.3654.80.0.2.43) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Tedd, > This patch updates the manpage for btmon. > --- > Makefile.am | 10 +--- > Makefile.tools | 3 + > doc/btmon.txt | 35 ----------- > monitor/btmon.1 | 152 ++++++++++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 156 insertions(+), 44 deletions(-) > delete mode 100644 doc/btmon.txt > create mode 100644 monitor/btmon.1 > > diff --git a/Makefile.am b/Makefile.am > index f98243f72..625a7ce3d 100644 > --- a/Makefile.am > +++ b/Makefile.am > @@ -579,14 +579,6 @@ if LIBRARY > pkgconfig_DATA = lib/bluez.pc > endif > > -manual_pages = doc/btmon.1 > - > -if MANPAGES > -dist_noinst_MANS += $(manual_pages) > -endif > - > -EXTRA_DIST += $(manual_pages:.1=.txt) > - > DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \ > --enable-health \ > --enable-midi \ > @@ -597,7 +589,7 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \ > --disable-systemd \ > --disable-udev > > -DISTCLEANFILES = $(pkgconfig_DATA) $(unit_tests) $(manual_pages) > +DISTCLEANFILES = $(pkgconfig_DATA) $(unit_tests) > > MAINTAINERCLEANFILES = Makefile.in \ > aclocal.m4 configure config.h.in config.sub config.guess \ > diff --git a/Makefile.tools b/Makefile.tools > index 57e858290..069f40ec8 100644 > --- a/Makefile.tools > +++ b/Makefile.tools > @@ -49,6 +49,9 @@ monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \ > monitor/tty.h > monitor_btmon_LDADD = lib/libbluetooth-internal.la \ > src/libshared-mainloop.la $(UDEV_LIBS) -ldl > +dist_man_MANS += monitor/btmon.1 > +else > +EXTRA_DIST += monitor/btmon.1 > endif > > if LOGGER > diff --git a/doc/btmon.txt b/doc/btmon.txt > deleted file mode 100644 > index 7a7fc537b..000000000 > --- a/doc/btmon.txt > +++ /dev/null > @@ -1,35 +0,0 @@ > -BTMON(1) > -======== > -:doctype: manpage > - > - > -NAME > ----- > -btmon - Bluetooth monitor > - > - > -SYNOPSIS > --------- > -*btmon* ['OPTIONS'] > - > - > -DESCRIPTION > ------------ > -The btmon(1) command provides access to the Bluetooth subsystem monitor > -infrastructure for reading HCI traces. > - > - > -AUTHOR > ------- > -btmon was originally written by Marcel Holtmann. > - > - > -RESOURCES > ---------- > -See > - > - > -COPYING > -------- > -Free use of this software is granted under ther terms of the GNU Lesser > -General Public Licenses (LGPL). > diff --git a/monitor/btmon.1 b/monitor/btmon.1 > new file mode 100644 > index 000000000..a9d8430c8 > --- /dev/null > +++ b/monitor/btmon.1 > @@ -0,0 +1,152 @@ > +.\" Manpage for btmon > +.TH btmon 1 "April 2021" BlueZ "Linux System Administration" > + > +.SH NAME > +btmon - Bluetooth monitor I rather not do that. Doing manage with troff is crazy. Please write them Restful and then lets use rst2man to create them. See how we do it in iwd repository. Regards Marcel