[PATCH] gsed.cfg: Add check for gsed

Ryan Long ryan.long at oarcorp.com
Mon Oct 3 15:52:50 UTC 2022


---
 bare/config/textproc/gsed.cfg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bare/config/textproc/gsed.cfg b/bare/config/textproc/gsed.cfg
index 8287c74..b4aaf4f 100644
--- a/bare/config/textproc/gsed.cfg
+++ b/bare/config/textproc/gsed.cfg
@@ -2,7 +2,7 @@
 # GNU sed has a version option, check for it.
 # If not found build it.
 #
-%define has_gnu_sed %(sed --version > /dev/null 2>&1; echo $?)
+%define has_gnu_sed %(sed --version > /dev/null 2>&1 || gsed --version > /dev/null 2>&1; echo $?)
 %if %{has_gnu_sed} != 0
  %include %{_configdir}/textproc/gsed-4.8.cfg
 %endif
-- 
2.30.2



More information about the devel mailing list