From patchwork Wed May 22 21:27:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 798177 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp669246wrx; Wed, 22 May 2024 14:29:22 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXUwRpD9tEQtMo5U0ntHLQa7XkKzNeJaGzPfIslEy/o62t17LCJB/psMz0zzyIJeFr95LcCHPwkC6k70Tf11GeE X-Google-Smtp-Source: AGHT+IFtk9nSzdD9d+Q4jL4ZjQuIiXV55ntxIHBgu3DeXQsImHlDCELOg/yaZRQKfgtQMVN0BcH5 X-Received: by 2002:a05:620a:4049:b0:793:19a3:6fa3 with SMTP id af79cd13be357-794a08fbcc7mr91409385a.1.1716413362328; Wed, 22 May 2024 14:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716413362; cv=none; d=google.com; s=arc-20160816; b=j7mOx9ZlRx/wQ4GxIX3loUzlr9JnuNBPVz9kCPbRkttrdvKnjUDZtuqJC2d5Qm93hG rHe5oYcWzSPoOKjV/9Qu7+G1alT6ycEwX5z8UT6TOa95NMgPf/4ImWXjk/R+ox+qUwFx ZPb6FBnzgBXVto4i6GDevuwvb2JJ0t7urV4wf+CqzrAZpHgHOb+tSs12E2aEGm78d3It 615BmJLXTphtwGOnTbmxVUey3lITTJTjwRcZlEsZqC+eRiZCq3YhNPgCvrDqlClamxzs 7ceFTQXsHnsSa413hZAJJZF/wyJcVN2Qkye63uybzSXhckrgaYL57SP6nZiQR34MEvRw F3rg== 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=UQCixiNfr28ZOrfhmxiGPA65dFhly8CmRsnoYC6xI9k=; b=LVsIQxd1+RzsOif/ctg0OzU99JCrzc/4we2DUEcyvaw8KJiS3xb1N5eKRfza8qRM8H xmGbir+C6yAhX3Wb4k8DzCMxNL0u6FaNGz6zQZlUtmnrkk6S060KOShcGIRaSsIMDqrq /b2Y649duBLLeC7IiDrTV2a7BFaEEeVV/XF44kz35NJt/hvujwDhuMC3rWS9m764ClN5 /J1/RPyWtA3LaK/aswiho/yMUhauYUXLdcqG9EDvt6t90sG3uOR0d6haiMv97k26/MUu O6Z8PZLAQvgXT52nqoF7JhldL+17FMv9W03czSDnXtpmj3U8tVBAnrOZvHK6vBAknCEO cPJQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TSaxndpl; 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-792bf277ab4si489778385a.40.2024.05.22.14.29.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 May 2024 14:29:22 -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=TSaxndpl; 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 1s9tV6-0004iP-1o; Wed, 22 May 2024 17:27:56 -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 1s9tV1-0004gX-GQ for qemu-devel@nongnu.org; Wed, 22 May 2024 17:27:51 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9tUx-0002eF-SC for qemu-devel@nongnu.org; Wed, 22 May 2024 17:27:51 -0400 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1f338ebe621so1958335ad.0 for ; Wed, 22 May 2024 14:27:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716413266; x=1717018066; 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=TSaxndple381iskLluOsd3ZTGK/UdTxBp1Yt3kFxQf4vFSKebDBxnHYE5fFDU0mebU mv4w7Iz9qp2swhz5zGl6/p1imRcwxrmxml9cDA8X8NGYFtDfxAGPci+6MqO6irFDp+c3 rc5yHhLmPsCOz95PPxt3zy+XpeAqIend9imZ4gLpbSvxLu+J+ua98WADRW4+exWjBXXf 4POWZwWWTcXnCE6AjNPluTsuERO0YbjaclZn6P2LhJ/YkEGmMH5ky5dwt4HLR2SZO453 8W2RJTUMP22bcjmt9IK0LOYR3QWTXk72CP8tCG9F3wx/K0Ho7NasY+V21DGsLgo7egpa uXmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716413266; x=1717018066; 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=ATQF7LAS9ivSCeF+DFTP9gsMNk3pzyj6GssMqOzGw7/5rbtsxyr55mxu6kLj1NXT+2 EV4LvWeclzNVVNjK5NTDBkRNmeu0h+XE5n8XBySwz4izi12voj4Vj6bsDLXOeSEdUEcB sYC6ps3xo0xAKB0GLQKpP9zggOLzwhMcLYLF6dFJZFy77fq0bVscBV7befZVgPPDxt5W gPVtu4bfMFkMD84fvcOh1bvTt6kSgTsien2KsVG2DLgcXJNTCsiGP0yHBwIRf5I70Uaq 7owC4oqoc6PWTWKV3lNkFq36Mvev/zztpXXlf/WgMjc8xV1fkaM7oXW3lMFuVwWb3rtZ MbYA== X-Gm-Message-State: AOJu0Yw5yev2faSgjMtFMuez4IrEu7Dv2sY+N4Kqos7ONHTZh99gdUu9 xtDDq94KqwdsmkrM9VcGDLzIMcb+UqePpS89eYZYkFYxcdrNpTNRfcME3vRDy/qqe3aN2sK1RBe B X-Received: by 2002:a17:902:e5c2:b0:1e2:45f3:2d57 with SMTP id d9443c01a7336-1f339edde45mr7289185ad.6.1716413266531; Wed, 22 May 2024 14:27:46 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f2fc06586asm64621705ad.201.2024.05.22.14.27.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 14:27:46 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org Subject: [PATCH RISU 4/4] contrib/generate_all: Do not rely on ag Date: Wed, 22 May 2024 14:27:41 -0700 Message-Id: <20240522212741.297734-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240522212741.297734-1-richard.henderson@linaro.org> References: <20240522212741.297734-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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 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 Reviewed-by: Philippe Mathieu-Daudé --- 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}))