From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iHF4GmP4Dl/5bQAA0tVLHw (envelope-from ) for ; Wed, 15 Jul 2020 12:36:51 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uIpMFmP4Dl88VQAA1q6Kng (envelope-from ) for ; Wed, 15 Jul 2020 12:36:51 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 05C4B94013C for ; Wed, 15 Jul 2020 12:36:49 +0000 (UTC) Received: from [144.217.243.247] (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 44A4F2036F; Wed, 15 Jul 2020 08:36:44 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 1F35A200DF for ; Wed, 15 Jul 2020 08:36:42 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id F155F5FFD4; Wed, 15 Jul 2020 08:36:41 -0400 (EDT) Received: (nullmailer pid 2970707 invoked by uid 1000); Wed, 15 Jul 2020 12:36:40 -0000 From: David Bremner To: David Bremner , Tomi Ollila , notmuch@notmuchmail.org Cc: flub@devork.be Subject: [PATCH] configure: replace multiple redirects with redirected block Date: Wed, 15 Jul 2020 09:36:27 -0300 Message-Id: <20200715123627.2970661-1-david@tethera.net> X-Mailer: git-send-email 2.27.0 In-Reply-To: <87tuy9m087.fsf@tethera.net> References: <87tuy9m087.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: HKGQNPQNAPQ6Y7O4HH7OJ4ULCC3IESCA X-Message-ID-Hash: HKGQNPQNAPQ6Y7O4HH7OJ4ULCC3IESCA X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 1.53 X-TUID: 2KKLEEJu5QQG This belatedly implements Tomi's suggestion from id:m25zaukv6u.fsf@guru.guru-group.fi --- configure | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/configure b/configure index b4ee7f37..d3b843b9 100755 --- a/configure +++ b/configure @@ -1549,16 +1549,16 @@ NOTMUCH_HAVE_PYTHON3_PYTEST=${have_python3_pytest} PLATFORM=${platform} EOF -cat > sphinx.config <> sphinx.config -fi -if [ $WITH_PYTHON_DOCS = "1" ]; then - printf "tags.add('WITH_PYTHON')\n" >> sphinx.config -fi -printf "rsti_dir = '%s'\n" $(realpath emacs) >> sphinx.config +{ + echo "# Generated by configure, run from doc/conf.py" + if [ $WITH_EMACS = "1" ]; then + echo "tags.add('WITH_EMACS')" + fi + if [ $WITH_PYTHON_DOCS = "1" ]; then + echo "tags.add('WITH_PYTHON')" + fi + printf "rsti_dir = '%s'\n" $(realpath emacs) +} > sphinx.config # Finally, after everything configured, inform the user how to continue. cat <