From patchwork Sun May 26 19:36:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 799086 Delivered-To: patch@linaro.org Received: by 2002:a5d:6a47:0:b0:354:fb4b:99cd with SMTP id t7csp1594762wrw; Sun, 26 May 2024 12:38:38 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUT6vC2puJP0YmlfiUcswaRcTooh2F+LghYdbgEwAOeOCM7JrER23twYOPgk93a80o3XnGZ+cUadkMZzLebzluA X-Google-Smtp-Source: AGHT+IGxSbvEHb2AXPiZwavEwR+3JbaVBcPU4YHhNSzPk+YPKWFe+/GoljEV6Z0zRZnQQXwy+sj1 X-Received: by 2002:a05:620a:6101:b0:792:e9e4:4a10 with SMTP id af79cd13be357-794ab099edfmr706685085a.34.1716752318352; Sun, 26 May 2024 12:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716752318; cv=none; d=google.com; s=arc-20160816; b=ZlWTeBZPJ28Z0CljwTw8dN3d6K5+tBQ+DPd6vRxmVVXaEutat/aAc37nu1SJP4bFJS PJq92bcVZVbhWWrKzNGgF9sXrnJO1JgPi0iVjEvB6BDLIKUYiLHCUbaduAHqNSCoMj4j izLsge31k2kjCC1TEp7AiS/ORHXMMttTSwLQo3CZMdvGdwugLW3vxBmA6smr7qzrqemJ vdyu1svtmDtDmlZgk1nMS51dW0cikbZnhe1tVGt53taSEv+Y7pXImthfbQr0UIbDNZMt bnH0VCt2rCqWD4BKVuZCGZtR0vewjApYED/3WAVMbE30IIhf2/sdAKw1aEhyc2LwnoAE /Smw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=xp2tqJpP1VGOVmvGLLfhZ7JUgsbCC6mxTTS1hPt+7hc=; fh=TYrED6TOMxGX0VC4GtjviASLbYyJe19+7/tKWjN44KQ=; b=iXaJXzHl7i2c5bBfODx30u8CYEA5Il6nk/qmg/z3jS/3qYegz42g30M2WXr4i8DUvw 45Z6NttjHyewpv83bVDDqFg3QwrNNgGD4JE86DGuMMgSeFBp6i2Uaj8l4e/vsB4ZoI17 xC86xW8hVTCOoCCCXu12r/ldVBgEQT16l7aXfcckywQR4uA9zgh3aqBIcnFcD9I+cfOf 6/6av1WVHSEj5lgHohPQOkxoWvSJPqkVhmP97vYjL9oAcPUcVcX96nIU7TS6UQ5Zw+hc gHSO3lbxHL5rmNUjylMe5guauq6DtuBwY7RZQL3XxWiaE4m+xYS7DQkqaLhFdjgtw0Y+ oVOA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QSQr1zwm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-794abd608easi711821885a.749.2024.05.26.12.38.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 26 May 2024 12:38:38 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QSQr1zwm; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBJfx-00083D-LX; Sun, 26 May 2024 15:37:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBJfr-00080L-WD for qemu-devel@nongnu.org; Sun, 26 May 2024 15:36:56 -0400 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBJfn-0006UK-Va for qemu-devel@nongnu.org; Sun, 26 May 2024 15:36:55 -0400 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2be00b445c2so2095051a91.2 for ; Sun, 26 May 2024 12:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716752205; x=1717357005; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xp2tqJpP1VGOVmvGLLfhZ7JUgsbCC6mxTTS1hPt+7hc=; b=QSQr1zwmIWOMN3tNggClR8hq+IKwpssUg8mWEfuH+UCrPzPqepzRF2Tu/YCXS9ppTI zWmzRzKnx/wwQUS1H0x7lWJVRui1pVyYP00tUwsTXrs+v9toEF648Zebx10jUmlNygz8 uYxFJkcW6ptNTm3+IyN9MY6tF05sUVl6WdIc1xX0PfK5kD44GKmm71nRsHfPDlxLezOc jOPIuKXpAJe0gz5uPIQSKNq/6YCPBKafe/Lt3TjmAv+U4Xd6F91EH02d4Axu8/vxXWi1 8gh41iqvPxc03e4eEWuJz8WoHiZNUVQt2R6EfvncIhOYOupnaWVqfkozMku3HhdUxqsC /B7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716752205; x=1717357005; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xp2tqJpP1VGOVmvGLLfhZ7JUgsbCC6mxTTS1hPt+7hc=; b=izGuyxungX9ZbKGSWtLI5cMIJ7hP8dxGg7pu9Yh02P7bsVVKIC8/ib4TctqthX3dBU LzzhmBsFfyDT2HKM7srl3EWS3SJc2zxiwv3G40a1QNCnWwzTymrC0iYm54akGfS7VSnz BMQrJwDv3qpMr4i4aIfZBECGK2+bmoAqwfdMtRrGv7x6B/Itq/pJjJgKCzXGU3w2cDDM p95nNiNw9HFjuSIJcevCtOP6jfkFMB+VsBtLNfLYL+RaUnpCvh428LSqWRv0h2NVS125 EuWpgPJuiCOOIpOTyjngWfB0VHRYKclOmjtKQYJ5Tq8Cp+19IrGTmvobba7ORx8CkO4o 7zog== X-Gm-Message-State: AOJu0YyjwPzT+vJXrIlOdkzPwAQ3PUoD8+5qLq+m8hub5Pd0XgImEJIn nO0to6oZNFOY/oXyzeSbnaXhThT/ZvOoOL8kLsRMlvDcTgn3iw37uCFw8rwH3Sw4K812+blcL5q a X-Received: by 2002:a17:90b:120e:b0:2a6:9c5f:828e with SMTP id 98e67ed59e1d1-2bf5f202ad0mr6698267a91.22.1716752204830; Sun, 26 May 2024 12:36:44 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bf5f6155b6sm4943761a91.29.2024.05.26.12.36.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 12:36:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: mark.cave-ayland@ilande.co.uk Subject: [PATCH RISU v2 07/13] contrib/generate_all: Do not rely on ag Date: Sun, 26 May 2024 12:36:31 -0700 Message-Id: <20240526193637.459064-8-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240526193637.459064-1-richard.henderson@linaro.org> References: <20240526193637.459064-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Use plain grep instead. Signed-off-by: Richard Henderson --- contrib/generate_all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/generate_all.sh b/contrib/generate_all.sh index 651cb23..5ff0b3e 100755 --- a/contrib/generate_all.sh +++ b/contrib/generate_all.sh @@ -78,8 +78,8 @@ fi mkdir -p ${TARGET_DIR} -ALL_INSNS=$(cat ${RISU_FILE} | ag "^\w" | cut -f 1 -d " " | sort) -COUNT=$(cat ${RISU_FILE=} | ag "^\w" | cut -f 1 -d " " | wc -l) +ALL_INSNS=$(cat ${RISU_FILE} | grep "^[A-Za-z]" | cut -f 1 -d " " | sort) +COUNT=$(cat ${RISU_FILE=} | grep "^[A-Za-z]" | cut -f 1 -d " " | wc -l) set -- $ALL_INSNS GROUP=$((COUNT / ${SPLIT}))