|
| From: | smplx |
| Subject: | Quoted args in an array passed as an option? |
| Date: | Thu, 25 Oct 2007 16:19:41 -0700 (PDT) |
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)
APPCOUNT=${#APPS[@]}
BUILDOPTS_app1=(--with foo --define '_smp_flags -j1')
BUILDOPTS_app2="--with bar"
BUILDOPTS=("${BUILDOPTS_app1[@]}" "$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.
| [Prev in Thread] | Current Thread | [Next in Thread] |