From patchwork Mon May 19 16:20:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Sterba X-Patchwork-Id: 4203051 X-Patchwork-Delegate: dave@jikos.cz Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 541EBBEEAB for ; Mon, 19 May 2014 16:20:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A011320279 for ; Mon, 19 May 2014 16:20:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C55262021B for ; Mon, 19 May 2014 16:20:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932451AbaESQUO (ORCPT ); Mon, 19 May 2014 12:20:14 -0400 Received: from cantor2.suse.de ([195.135.220.15]:35101 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932420AbaESQUM (ORCPT ); Mon, 19 May 2014 12:20:12 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 648B6AC77 for ; Mon, 19 May 2014 16:20:11 +0000 (UTC) Received: by ds.suse.cz (Postfix, from userid 10065) id 408FCDA8EB; Mon, 19 May 2014 18:20:11 +0200 (CEST) From: David Sterba To: linux-btrfs@vger.kernel.org Cc: David Sterba Subject: [PATCH 3/5] btrfs-progs: doc: autoformat user-supplied arguments by sed Date: Mon, 19 May 2014 18:20:11 +0200 Message-Id: X-Mailer: git-send-email 1.9.0 In-Reply-To: References: Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Convert all values enclosed between <...> to italic before it goes to asciidoc processor. Signed-off-by: David Sterba --- Documentation/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/Makefile b/Documentation/Makefile index e22f5bca0ff2..45299bb29f9b 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -85,10 +85,11 @@ clean: %.8 : %.xml $(QUIET_XMLTO)$(RM) $@ && \ $(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $< - %.xml : %.txt asciidoc.conf - $(QUIET_ASCIIDOC)$(RM) $@+ $@ && \ + $(QUIET_ASCIIDOC)$(RM) $@.tmp[12] $@ && \ + sed -e "s/\(<[^>]\+>\)/'\1'/g" < $< > $@.tmp1 && \ $(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \ $(ASCIIDOC_EXTRA) -abtrfs_version=$(BTRFS_VERSION) \ - -o $@+ $< && \ - mv $@+ $@ + -o $@.tmp2 $@.tmp1 && \ + mv $@.tmp2 $@ && \ + rm -f -- $@.tmp1