aboutsummaryrefslogtreecommitdiffstats
path: root/macroszification
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2000-07-27 14:48:09 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2000-07-27 14:48:09 +0000
commit0a09ff742a5e1ad07d20109a4938ae0fc6c748cf (patch)
tree392a5728eb5b28614f96cab44ee612282f2406e7 /macroszification
parent66b9bc7cb56719f184d7beb3b10007395d17022f (diff)
downloadspec-helper-0a09ff742a5e1ad07d20109a4938ae0fc6c748cf.tar
spec-helper-0a09ff742a5e1ad07d20109a4938ae0fc6c748cf.tar.gz
spec-helper-0a09ff742a5e1ad07d20109a4938ae0fc6c748cf.tar.bz2
spec-helper-0a09ff742a5e1ad07d20109a4938ae0fc6c748cf.tar.xz
spec-helper-0a09ff742a5e1ad07d20109a4938ae0fc6c748cf.zip
Check Prefix only when %{?prefix}? is present in the spec file
Diffstat (limited to 'macroszification')
-rw-r--r--macroszification4
1 files changed, 3 insertions, 1 deletions
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 && {