aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordaviddavid <geiger.david68210@gmail.com>2023-05-04 04:49:02 +0200
committerdaviddavid <geiger.david68210@gmail.com>2023-05-04 04:49:02 +0200
commit51244395ffd330f5bc14b5e4758344f58032b245 (patch)
treed886ab9c4f0e7d89b4e83e29e6ce2fc8e216a457
parentbc7b28bda7e206a4d9e0966ee1f5c09dc5c861e0 (diff)
downloadspec-helper-51244395ffd330f5bc14b5e4758344f58032b245.tar
spec-helper-51244395ffd330f5bc14b5e4758344f58032b245.tar.gz
spec-helper-51244395ffd330f5bc14b5e4758344f58032b245.tar.bz2
spec-helper-51244395ffd330f5bc14b5e4758344f58032b245.tar.xz
spec-helper-51244395ffd330f5bc14b5e4758344f58032b245.zip
Use `grep -E` instead of deprecated `egrep`
-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;
}