From nobody Tue Oct 7 04:03:51 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1582716728; cv=none; d=zohomail.com; s=zohoarc; b=M/6G1Tkle5qQS/5e1sh5Wqn6Nm2c0M8OaBTGmEZa0ctHW60s/47zHcgu3BqvY46wijaow/q+MFzclT61O/0uvPqgsHjU2cSi9+3yHCdwyeUTywGyv6NT5fbrnQRtEZNqjmdZi/YcHoSkoH8qJvhNWBUUkyQVzk8E5JITM3yb0Mk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582716728; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=fw/rJa8dhtp/mvFKBv5486BhN3zvfJhs9x20gT+6mYA=; b=HZPuMFD1jhhM1stvuSS6WKylB6iHyWMuvrdLXgUlpAv6hXhf/ZbKUmbNURtjkbQUuKUdeCueYCi7RzpUyJON6/pNgTfNwfpSXbc4a6Tvn1lN1ttNkr7lktLI2ugkRC1BjbkCEo8+uhy5CSNmUOOiP/CMRyXeSbNRMMSoyDUuumU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1582716728260546.8918704733926; Wed, 26 Feb 2020 03:32:08 -0800 (PST) Received: from localhost ([::1]:42712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6uv8-0002A9-C9 for importer@patchew.org; Wed, 26 Feb 2020 06:32:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52594) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j6utj-0000Zn-N9 for qemu-devel@nongnu.org; Wed, 26 Feb 2020 06:30:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j6uti-0005or-KW for qemu-devel@nongnu.org; Wed, 26 Feb 2020 06:30:39 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:56185) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j6uti-0005je-De for qemu-devel@nongnu.org; Wed, 26 Feb 2020 06:30:38 -0500 Received: by mail-wm1-x343.google.com with SMTP id q9so2615363wmj.5 for ; Wed, 26 Feb 2020 03:30:38 -0800 (PST) Received: from donizetti.lan ([2001:b07:6468:f312:d0d9:ea10:9775:f33f]) by smtp.gmail.com with ESMTPSA id h128sm2628154wmh.33.2020.02.26.03.30.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Feb 2020 03:30:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fw/rJa8dhtp/mvFKBv5486BhN3zvfJhs9x20gT+6mYA=; b=hid7JL4p0EyLwAJVb7B2zEOGy0u96FpGFTQu9zULjdJ+PTTA6DC7c95OZ8SRdIRa2p 19KVtKOkWc3ryZ6Ig64PMj1ZM/qqf6k0mSHE/LefEoQnvtQTDVbXjCocLNGyNFUiG1Mh iLUTgaE+M5NVGLqsS9Xi18kq4qg5kd1YCjNnAV6K2bsIs6Bs+LOX0BsF4GMTmJCI1G1v ISo60DwTmcmKa+9vrwEi7zdL5rydJFcp0+uiNHFV0b2YApsfTTux3egen43h6k09W/Hm hIZNWCOWPTWmf70vjDgmBr2svCKJI92DbkizhVIPfaL/farNXYzuwSo3reXjGT+2IJLW 7Z+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=fw/rJa8dhtp/mvFKBv5486BhN3zvfJhs9x20gT+6mYA=; b=MxfJO+4yEUj5O3UfI4GME3mK+iLd0HiLjjGcepCF1yHhhg/AwcWAs/82/Ena0CT4JB PV3BJHWMxeQI+IcaDYJ+Y8E2XYKVq1/lT3Oy9eMea8NfimUp6ZA/cxnPTNAlpK+CuuOb NDE/ej8/Lf7Uvv4evFFTjfrSe+0C386KWq3GXYQterZ2b6+JzgagQCfxVFawEfmrXQ2a 8gHI3eIJ4GffRGTeS2uJPCMTkxq9gQd8lwBvVPDKvm9YY8DtCP0Je9CRvkGO1Y7TocrU T1bTW6vIKDg88BD5OGrAUHL2Adhs/bT83xueosz8A+lokkVj07nHEfN7X64Dq49A1u0S SV3Q== X-Gm-Message-State: APjAAAVQ8PTaqYr4zhU7vuVbpUfMsQzSCOl8fZwhQ8sUcW/ZLRx0FWTK qMtmRRZtMNI8WSbBToifPVrVAn+H X-Google-Smtp-Source: APXvYqzwsTq6SPkYGZp+q+OB0bSf9EUo8SWV8xRqb61smIAaIExVHR3HyH6yyJO89anRn3KZtB25cg== X-Received: by 2002:a7b:c08d:: with SMTP id r13mr5335996wmh.104.1582716636972; Wed, 26 Feb 2020 03:30:36 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Subject: [PATCH 03/18] texi2pod: parse @include directives outside "@c man" blocks Date: Wed, 26 Feb 2020 12:30:19 +0100 Message-Id: <20200226113034.6741-4-pbonzini@redhat.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200226113034.6741-1-pbonzini@redhat.com> References: <20200226113034.6741-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" This enables splitting the huge qemu-doc.texi file and keeping parallel Texinfo and rST versions of the documentation. texi2pod is not going to live much longer and hardly anyone cares about its upstream status, so the temporary fork should be acceptable. Signed-off-by: Paolo Bonzini Reviewed-by: Peter Maydell --- scripts/texi2pod.pl | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/scripts/texi2pod.pl b/scripts/texi2pod.pl index 839b7917cf..8bfc6f6f4c 100755 --- a/scripts/texi2pod.pl +++ b/scripts/texi2pod.pl @@ -143,6 +143,24 @@ while(<$inf>) { next; }; =20 + # Single line command handlers. + + /^\@include\s+(.+)$/ and do { + push @instack, $inf; + $inf =3D gensym(); + $file =3D postprocess($1); + + # Try cwd and $ibase, then explicit -I paths. + $done =3D 0; + foreach $path ("", $ibase, @ipath) { + $mypath =3D $file; + $mypath =3D $path . "/" . $mypath if ($path ne ""); + open($inf, "<" . $mypath) and ($done =3D 1, last); + } + die "cannot find $file" if !$done; + next; + }; + next unless $output; =20 # Discard comments. (Can't do it above, because then we'd never see @@ -242,24 +260,6 @@ while(<$inf>) { s/>/>/g; } =20 - # Single line command handlers. - - /^\@include\s+(.+)$/ and do { - push @instack, $inf; - $inf =3D gensym(); - $file =3D postprocess($1); - - # Try cwd and $ibase, then explicit -I paths. - $done =3D 0; - foreach $path ("", $ibase, @ipath) { - $mypath =3D $file; - $mypath =3D $path . "/" . $mypath if ($path ne ""); - open($inf, "<" . $mypath) and ($done =3D 1, last); - } - die "cannot find $file" if !$done; - next; - }; - /^\@(?:section|unnumbered|unnumberedsec|center)\s+(.+)$/ and $_ =3D "\n=3Dhead2 $1\n"; /^\@subsection\s+(.+)$/ --=20 2.21.1