From nobody Fri Nov 14 00:58:45 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=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1583516178; cv=none; d=zohomail.com; s=zohoarc; b=izvDa/z8PVhm/zjCNnSM13xZhx6xEFOHuVj0NPlhVuxnp5xCc5bLSt3h28ZAgkNZXi3/sNIm12FPJ2m/5D2gfx2aBHKfpa3XhtjWTqL+w6jDiO7Es7LNl9jRQknmqm7L9Btp9jFMpvuh+m6VeNR/AViFgsUz/YX90rsKUH5pzHs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583516178; h=Content-Transfer-Encoding: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=dELmma94fIMJnBaoti3wb6dHPUqTaIQs2QH0CFvzC6Q=; b=PZAPSolof1iTx6Lu46wFEeIJXrKwRxNJv2K5G/TpKtjWKH4tCxS6Jt7sddS2NhX/n+pbZPEZSCok6f0PEpT7y8ntg0trA7wh47sykiZa25cJq+uWfqnUwy/Y8tNwdr3AyApMVT8UGjgsv0aVEnt5hOtiJElYRFib2HHTPomewNE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass 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 1583516178509894.8233293384546; Fri, 6 Mar 2020 09:36:18 -0800 (PST) Received: from localhost ([::1]:40202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAGtV-0005mj-ET for importer@patchew.org; Fri, 06 Mar 2020 12:36:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50745) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAGbl-0000YH-Hl for qemu-devel@nongnu.org; Fri, 06 Mar 2020 12:17:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAGbk-0007tQ-Aq for qemu-devel@nongnu.org; Fri, 06 Mar 2020 12:17:57 -0500 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:37652) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAGbk-0007qg-3h for qemu-devel@nongnu.org; Fri, 06 Mar 2020 12:17:56 -0500 Received: by mail-wm1-x342.google.com with SMTP id a141so3186934wme.2 for ; Fri, 06 Mar 2020 09:17:56 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id f8sm6948346wmf.20.2020.03.06.09.17.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 09:17:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=dELmma94fIMJnBaoti3wb6dHPUqTaIQs2QH0CFvzC6Q=; b=Ia7oHFmxq/KVNlHoiYLmJqILSun6LVFikeMRB4EnsbPZRegEZ2Ym/uOE6QygabsW1l T8tuGsxqYX2zVswSQob3vY3ii/uaXJAQnmdr6s1psJhbyOS8ffwc1cGyYvJ1Dlspk+l5 qcwyMkGw8vQ8UVzmbNwrS4aEAfXAQwn1MbJLqrapSoXb0GVj8D4SbHoePmjXLU8RHFXd yUBQt0TS+3Duq8o9XNFJD5GGZqwINRsscE7l8QR+3b1BdMnLLrg3HsJUKbWJgYM5SgWW en+orkEIaMBmCoyv5GL7p2n9hzAeNCbI/JoQBs+HASyd9oNej6sZXBakc9AdOLcznRJV PDTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dELmma94fIMJnBaoti3wb6dHPUqTaIQs2QH0CFvzC6Q=; b=CwrNvPqcJ053JTI8Y8JCGNj8xvZ82zn4xN2gKsO69Znmmw5H5UqtTLqfofUb7KGxz4 K9riV0NIBOcAyWOw8WxIPeJFvpATIDQnS+wEGiCwgKYHirxN0knKfrVnKZiTtvkBRrEI +jHNN96RCq3QSU8BK/COLyvs1gNvIKM5pYrz0GhIhf2Fu0K1VxqiLPsAe+bLTD8oQEaP 06QDghoYuJdmDJTu3zbQxfj/kunXi6tgrBC0+AI6TK8rAEDePA7mI5r0OGJXzmFv5O27 mnnMlUr/sPMs0L55jlob0N6PYmDiURbtlgEayS0GI09tSkmyG+f9a5BW1vnQPj2KYQGy P9tg== X-Gm-Message-State: ANhLgQ27uIJVDgZti4vkTRbPbteiCQ2ZyDWV6RSq8yUisqiwFYBMH590 PtB2BEvht1bQaVU+BACxy8JTp219ZHBBdg== X-Google-Smtp-Source: ADFU+vtbK1YMze99OmKgoB0yGavushKHedDKo/OrIrvbwifEVvMmqqfIAwssYab1N26+OspRzXQAXQ== X-Received: by 2002:a7b:c2a2:: with SMTP id c2mr4885331wmk.19.1583515074709; Fri, 06 Mar 2020 09:17:54 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH 3/7] hxtool: Remove Texinfo generation support Date: Fri, 6 Mar 2020 17:17:45 +0000 Message-Id: <20200306171749.10756-4-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200306171749.10756-1-peter.maydell@linaro.org> References: <20200306171749.10756-1-peter.maydell@linaro.org> 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::342 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" All the STEXI/ETEXI blocks and the Makfile rules that use them have now been removed from the codebase. We can remove the code from the hxtool script which handles the STEXI/ETEXI directives and the '-t' option. Signed-off-by: Peter Maydell --- scripts/hxtool | 78 +------------------------------------------------- 1 file changed, 1 insertion(+), 77 deletions(-) diff --git a/scripts/hxtool b/scripts/hxtool index 0003e7b673d..7b1452f3cf1 100644 --- a/scripts/hxtool +++ b/scripts/hxtool @@ -7,7 +7,7 @@ hxtoh() case $str in HXCOMM*) ;; - STEXI*|ETEXI*|SRST*|ERST*) flag=3D$(($flag^1)) + SRST*|ERST*) flag=3D$(($flag^1)) ;; *) test $flag -eq 1 && printf "%s\n" "$str" @@ -16,84 +16,8 @@ hxtoh() done } =20 -print_texi_heading() -{ - if test "$*" !=3D ""; then - title=3D"$*" - printf "@subsection %s\n" "${title%:}" - fi -} - -hxtotexi() -{ - flag=3D0 - rstflag=3D0 - line=3D1 - while read -r str; do - case "$str" in - HXCOMM*) - ;; - STEXI*) - if test $rstflag -eq 1 ; then - printf "line %d: syntax error: expected ERST, found '%s'\n= " "$line" "$str" >&2 - exit 1 - fi - if test $flag -eq 1 ; then - printf "line %d: syntax error: expected ETEXI, found '%s'\= n" "$line" "$str" >&2 - exit 1 - fi - flag=3D1 - ;; - ETEXI*) - if test $rstflag -eq 1 ; then - printf "line %d: syntax error: expected ERST, found '%s'\n= " "$line" "$str" >&2 - exit 1 - fi - if test $flag -ne 1 ; then - printf "line %d: syntax error: expected STEXI, found '%s'\= n" "$line" "$str" >&2 - exit 1 - fi - flag=3D0 - ;; - SRST*) - if test $rstflag -eq 1 ; then - printf "line %d: syntax error: expected ERST, found '%s'\n= " "$line" "$str" >&2 - exit 1 - fi - if test $flag -eq 1 ; then - printf "line %d: syntax error: expected ETEXI, found '%s'\= n" "$line" "$str" >&2 - exit 1 - fi - rstflag=3D1 - ;; - ERST*) - if test $flag -eq 1 ; then - printf "line %d: syntax error: expected ETEXI, found '%s'\= n" "$line" "$str" >&2 - exit 1 - fi - if test $rstflag -ne 1 ; then - printf "line %d: syntax error: expected SRST, found '%s'\n= " "$line" "$str" >&2 - exit 1 - fi - rstflag=3D0 - ;; - DEFHEADING*) - print_texi_heading "$(expr "$str" : "DEFHEADING(\(.*\))")" - ;; - ARCHHEADING*) - print_texi_heading "$(expr "$str" : "ARCHHEADING(\(.*\),.*)")" - ;; - *) - test $flag -eq 1 && printf '%s\n' "$str" - ;; - esac - line=3D$((line+1)) - done -} - case "$1" in "-h") hxtoh ;; -"-t") hxtotexi ;; *) exit 1 ;; esac =20 --=20 2.20.1