From 895eecd4dd4bb1c3793e0cd0e42943ba4d3f9822 Mon Sep 17 00:00:00 2001
From: Maxwell G <maxwell@gtmx.me>
Date: Wed, 12 Jul 2023 19:59:01 +0000
Subject: [PATCH] Makefile: use grep -E instead of egrep

Running egrep on modern systems prints

    egrep: warning: egrep is obsolescent; using grep -E
---
 docs/docsite/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/docsite/Makefile b/docs/docsite/Makefile
index f9a3406e912..77eedaf0eab 100644
--- a/docs/docsite/Makefile
+++ b/docs/docsite/Makefile
@@ -4,7 +4,7 @@ KEYWORD_DUMPER=../../hacking/build-ansible.py document-keywords
 CONFIG_DUMPER=../../hacking/build-ansible.py document-config
 GENERATE_CLI=../../hacking/build-ansible.py generate-man
 COLLECTION_DUMPER=../../hacking/build-ansible.py collection-meta
-ifeq ($(shell echo $(OS) | egrep -ic 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
+ifeq ($(shell echo $(OS) | grep -Eic 'Darwin|FreeBSD|OpenBSD|DragonFly'),1)
 CPUS ?= $(shell sysctl hw.ncpu|awk '{print $$2}')
 else
 CPUS ?= $(shell nproc)