From 51244395ffd330f5bc14b5e4758344f58032b245 Mon Sep 17 00:00:00 2001 From: daviddavid Date: Thu, 4 May 2023 04:49:02 +0200 Subject: Use `grep -E` instead of deprecated `egrep` --- NEWS | 2 ++ macroszification | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 24e8077..af60dca 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ + * Use `grep -E` instead of deprecated `egrep` + 2020-05-01 Jani Välimaa 0.31.23 * rename spec-helper.macros as macros.spec-helper * update rpm macro location to standard /usr/lib/rpm/macros.d diff --git a/macroszification b/macroszification index b6ef99c..e8c490b 100644 --- a/macroszification +++ b/macroszification @@ -52,21 +52,21 @@ if [[ ! -f $file ]];then usage $val; fi -[[ -z $nocheck ]] && egrep -q "%{?prefix}?" $file && { - egrep -q "^Prefix:[[:space:]]+" $file || { +[[ -z $nocheck ]] && grep -E -q "%{?prefix}?" $file && { + grep -E -q "^Prefix:[[:space:]]+" $file || { echo "sound like you don't have a Prefix set" exit; } } -[[ -z $nocheck ]] && egrep -q "^%configure" $file && { - egrep -q "^%makeinstall" $file || { +[[ -z $nocheck ]] && grep -E -q "^%configure" $file && { + grep -E -q "^%makeinstall" $file || { echo "sound like you don't have a %makeinstall" exit; } } -[[ -z $nocheck ]] && egrep -q "^Docdir:[[:space:]]+" $file && { +[[ -z $nocheck ]] && grep -E -q "^Docdir:[[:space:]]+" $file && { echo "You have a Docdir entry, it's not good !!" exit; } -- cgit v1.2.1