From 0a09ff742a5e1ad07d20109a4938ae0fc6c748cf Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Thu, 27 Jul 2000 14:48:09 +0000 Subject: Check Prefix only when %{?prefix}? is present in the spec file --- macroszification | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'macroszification') diff --git a/macroszification b/macroszification index ec244bc..433df7b 100644 --- a/macroszification +++ b/macroszification @@ -53,9 +53,11 @@ if [[ ! -f $file ]];then usage $val; fi -[[ -z $nocheck ]] && egrep -q "^Prefix:[[:space:]]+" $file || { +[[ -z $nocheck ]] && egrep -q "%{?prefix}?" $file && { + egrep -q "^Prefix:[[:space:]]+" $file || { echo "sound like you don't have a Prefix set" exit; + } } [[ -z $nocheck ]] && egrep -q "^%configure" $file && { -- cgit v1.2.1