I'm trying to pass on --define '_smp_mflag -j1' (with the quotes intact) to
the rpmbuild command but I can't get it working. Anyone have an idea what
I'm doing wrong? Thanks!

#!/bin/bash
APPS=(app1 app2)
[EMAIL PROTECTED]
BUILDOPTS_app1=(--with foo --define '_smp_flags -j1')
BUILDOPTS_app2="--with bar"
BUILDOPTS=("[EMAIL PROTECTED]" "$BUILDOPTS_app2")
for (( count=0 ; count < 1 ; count++ )) ; do
        rpmbuild -ba --target=i686 ${APPS[$count]}.spec ${BUILDOPTS[$count]}
done

-- 
View this message in context: 
http://www.nabble.com/Quoted-args-in-an-array-passed-as-an-option--tf4694230.html#a13417991
Sent from the Gnu - Bash mailing list archive at Nabble.com.



Reply via email to