[PATCH RISU 4/4] contrib/generate_all: Do not rely on ag

Richard Henderson posted 4 patches 6 months ago
[PATCH RISU 4/4] contrib/generate_all: Do not rely on ag
Posted by Richard Henderson 6 months ago
Use plain grep instead.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 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}))
-- 
2.34.1
Re: [PATCH RISU 4/4] contrib/generate_all: Do not rely on ag
Posted by Philippe Mathieu-Daudé 6 months ago
On 22/5/24 23:27, Richard Henderson wrote:
> Use plain grep instead.
> 
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>   contrib/generate_all.sh | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>