aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rw-r--r--macroszification10
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 <wally@mageia.org> 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;
}