From cf6ae5029ed3240ceaaaa68dc439900cadb74153 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 13 Jul 2014 20:10:32 +1700 Subject: [PATCH] [PATCH v3 0/5] rst2man.py support and doc-build cleanups --- 53/22b2ce4bdc18102206b8df704f352e289815ea | 112 ++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 53/22b2ce4bdc18102206b8df704f352e289815ea diff --git a/53/22b2ce4bdc18102206b8df704f352e289815ea b/53/22b2ce4bdc18102206b8df704f352e289815ea new file mode 100644 index 000000000..2bb76a3be --- /dev/null +++ b/53/22b2ce4bdc18102206b8df704f352e289815ea @@ -0,0 +1,112 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 21CF7431FC3 + for ; Sat, 12 Jul 2014 20:11:38 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id NEo7rcG7RY7U for ; + Sat, 12 Jul 2014 20:11:29 -0700 (PDT) +Received: from qmta01.emeryville.ca.mail.comcast.net + (qmta01.emeryville.ca.mail.comcast.net [76.96.30.16]) + by olra.theworths.org (Postfix) with ESMTP id 1548A431FBC + for ; Sat, 12 Jul 2014 20:11:28 -0700 (PDT) +Received: from omta02.emeryville.ca.mail.comcast.net ([76.96.30.19]) + by qmta01.emeryville.ca.mail.comcast.net with comcast + id Rf0J1o0020QkzPwA1fBUEb; Sun, 13 Jul 2014 03:11:28 +0000 +Received: from odin.tremily.us ([24.18.63.50]) + by omta02.emeryville.ca.mail.comcast.net with comcast + id RfBS1o004152l3L8NfBSd3; Sun, 13 Jul 2014 03:11:27 +0000 +Received: from mjolnir.tremily.us (unknown [192.168.0.150]) + by odin.tremily.us (Postfix) with ESMTPS id CD0C71286EFF; + Sat, 12 Jul 2014 20:11:25 -0700 (PDT) +Received: (nullmailer pid 31443 invoked by uid 1000); + Sun, 13 Jul 2014 03:10:43 -0000 +From: "W. Trevor King" +To: notmuch@notmuchmail.org +Subject: [PATCH v3 0/5] rst2man.py support and doc-build cleanups +Date: Sat, 12 Jul 2014 20:10:32 -0700 +Message-Id: +X-Mailer: git-send-email 1.9.1.353.gc66d89d +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; + s=q20140121; t=1405221088; + bh=hLeNRkHdvrG+zeFymJ1d5wvGVZa5ZOLRiD1PoMbIS7M=; + h=Received:Received:Received:Received:From:To:Subject:Date: + Message-Id:MIME-Version:Content-Type; + b=qQrnaKtUeb23tFolzAaW4cumr+0O26f80BOhXOdORNiA46ifEvNVKDcYWyHqdLPvc + kSt5lGKGkdc2Xw+S0f+WmfOVeEgQ5LajrL74FSQ0dmA8zFoC1HW/bHrtuNpnPXosaR + bKzfM5LFbIM5M+zextU/WH704D6luEIlUm5G2Zpr3WMUg+jXW7OpFIjUSDtlCchQSf + aYR6i1Bv4ME1TmFddCM2pzbFsDYZq7cSygzV6VhJ3mSgqWSK1uUgnI6jJfDvZtGsND + F38ghdvQjklQJcqYPLT0PLrVoyH8yNX+C5ESLQCeYcUvDKKPTPOC8rc1HesJuxRQrj + 3fefQc/02inYA== +Cc: Tomi Ollila +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 13 Jul 2014 03:11:38 -0000 + +Changes since v2 [1]: + +* In patches 1/5 and 5/5, use for loops to check for rst2man[.py] and + rst2html[.py]. +* In patches 1/5 and 5/5, store the command names, not the full paths + (command -v …) [2]. +* In patch 3/5, I've added argparse handling to the newly-renamed + rst-man2any.py. Tomi suggested modeling the name and UI on texi2any + [3], but texi2any is for converting a single file, while + rst-man2any.py is for converting a whole tree (and it takes an + arbitrary ReST-to-$x converter to do the real work). I've basically + just cleaned things up, but if folks aren't satisfied I'm going to + need more concrete suggestions ;). + +Cheers, +Trevor + +[1]: id:cover.1399740604.git.wking@tremily.us + http://thread.gmane.org/gmane.mail.notmuch.general/18291 +[2]: id:m2ion3dn0r.fsf@guru.guru-group.fi + http://article.gmane.org/gmane.mail.notmuch.general/18652 +[3]: id:m2lhrzj8kb.fsf@guru.guru-group.fi + http://article.gmane.org/gmane.mail.notmuch.general/18653 + +W. Trevor King (5): + doc: Allow rst2man.py as an alternative to rst2man + doc/prerst2man.py: Convert execfile to import + doc/rst-man2any.py: Adjust to handle any output format, not just man + pages + doc: Consolidate Makefile targets around {build|install}-{format} + doc: Add rst2html support for building HTML docs + + Makefile.local | 14 ++++++- + configure | 45 ++++++++++++++++++++--- + doc/INSTALL | 47 +++++++++++++++++------- + doc/Makefile.local | 48 ++++++++++++++---------- + doc/prerst2man.py | 63 -------------------------------- + doc/rst-man2any.py | 105 +++++++++++++++++++++++++++++++++++++++++++++++++++++ + 6 files changed, 217 insertions(+), 105 deletions(-) + delete mode 100644 doc/prerst2man.py + create mode 100755 doc/rst-man2any.py + +-- +1.9.1.353.gc66d89d + -- 2.26.2