From patchwork Tue Jul 19 16:12:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 989182 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6JGC4jf007163 for ; Tue, 19 Jul 2011 16:12:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751628Ab1GSQMA (ORCPT ); Tue, 19 Jul 2011 12:12:00 -0400 Received: from smtp207.alice.it ([82.57.200.103]:44444 "EHLO smtp207.alice.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751622Ab1GSQL7 (ORCPT ); Tue, 19 Jul 2011 12:11:59 -0400 Received: from venice.bhome (82.59.204.123) by smtp207.alice.it (8.5.124.08) id 4DFA189A03542FCF for linux-btrfs@vger.kernel.org; Tue, 19 Jul 2011 18:11:57 +0200 Subject: [PATCH 4/6] Update the makefile for generating the man page. To: linux-btrfs From: Goffredo Baroncelli Date: Tue, 19 Jul 2011 18:12:16 +0200 Message-ID: <20110719161216.3210.76829.stgit@venice.bhome> In-Reply-To: <20110719161049.3210.54794.stgit@venice.bhome> References: <20110719161049.3210.54794.stgit@venice.bhome> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 19 Jul 2011 16:12:04 +0000 (UTC) From: Goffredo Baroncelli The makefile is update in order to generate the man/btrfs.8.in by the helpextract tool on the basis of the sources comments. The old man page is renamed as btrfs.8.in.old. --- Makefile | 11 +- man/btrfs.8.in | 359 ---------------------------------------------------- man/btrfs.8.in.old | 359 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 369 insertions(+), 360 deletions(-) delete mode 100644 man/btrfs.8.in create mode 100644 man/btrfs.8.in.old -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Makefile b/Makefile index edee1a0..dc1342f 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,8 @@ LIBS = -luuid progs = btrfsctl mkfs.btrfs btrfs-debug-tree btrfs-show btrfs-vol btrfsck \ btrfs btrfs-map-logical +btrfs_man_page_source = btrfs.c btrfs_cmds.c scrub.c + # make C=1 to enable sparse ifdef C check = sparse $(CHECKFLAGS) @@ -84,13 +86,20 @@ convert: $(objects) convert.o ioctl-test: $(objects) ioctl-test.o $(CC) $(CFLAGS) -o ioctl-test $(objects) ioctl-test.o $(LDFLAGS) $(LIBS) -manpages: +helpextract: helpextract.o + $(CC) $(CFLAGS) -o $@ helpextract.o + +man/btrfs.8.in: helpextract $(btrfs_man_page_source) + ./helpextract --man-page $(btrfs_man_page_source) >$@ + +manpages: man/btrfs.8.in cd man; make install-man: cd man; make install clean : + rm -f man/btrfs.8.in rm -f $(progs) cscope.out *.o .*.d btrfs-convert btrfs-image btrfs-select-super \ btrfs-zero-log btrfstune dir-test ioctl-test quick-test version.h cd man; make clean diff --git a/man/btrfs.8.in b/man/btrfs.8.in deleted file mode 100644 index 84a60cd..0000000 --- a/man/btrfs.8.in +++ /dev/null @@ -1,359 +0,0 @@ -.TH BTRFS 8 "" "btrfs" "btrfs" -.\" -.\" Man page written by Goffredo Baroncelli (Feb 2010) -.\" -.SH NAME -btrfs \- control a btrfs filesystem -.SH SYNOPSIS -\fBbtrfs\fP \fBsubvolume snapshot\fP\fI [-r] [/]\fP -.PP -\fBbtrfs\fP \fBsubvolume delete\fP\fI \fP -.PP -\fBbtrfs\fP \fBsubvolume create\fP\fI [/]\fP -.PP -\fBbtrfs\fP \fBsubvolume list\fP\fI [-p] \fP -.PP -\fBbtrfs\fP \fBsubvolume set-default\fP\fI \fP -.PP -\fBbtrfs\fP \fBfilesystem sync\fP\fI \fP -.PP -\fBbtrfs\fP \fBfilesystem resize\fP\fI [+/\-][gkm]|max \fP -.PP -\fBbtrfs\fP \fBfilesystem label\fP\fI [newlabel]\fP -.PP -\fBbtrfs\fP \fBfilesystem defrag\fP\fI [options] | [|...]\fP -.PP -\fBbtrfs\fP \fBsubvolume find-new\fP\fI \fP -.PP -\fBbtrfs\fP \fBfilesystem balance\fP [\fB-wcv\fP] [\fB--wait\fP] [\fB--count\fP] [\fB--verbose\fP] [\fB-f\fP|\fBfilter=\fP\fI\fP] \fI\fP -.PP -\fBbtrfs\fP \fBbalance start\fP [\fB-wcv\fP] [\fB--wait\fP] [\fB--count\fP] [\fB--verbose\fP] [\fB-f\fP|\fBfilter=\fP\fI\fP] \fI\fP -.PP -\fBbtrfs\fP \fBbalance progress\fP [\fB-m\fP|\fB--monitor\fP] \fI\fP -.PP -\fBbtrfs\fP \fBbalance cancel\fP \fI\fP -.PP -\fBbtrfs\fP \fBfilesystem defragment\fP\fI | [|...]\fP -.PP -\fBbtrfs\fP \fBdevice scan\fP\fI [--all-devices| [...]]\fP -.PP -\fBbtrfs\fP \fBdevice show\fP\fI [--all-devices||