[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quoted args in an array passed as an option?
From: |
bengoavs |
Subject: |
Re: Quoted args in an array passed as an option? |
Date: |
Fri, 26 Oct 2007 08:10:13 -0700 (PDT) |
I'm not exactly an expert, but did you try "--define '_smp_mflag -j1'" ?
smplx wrote:
>
> 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#a13428712
Sent from the Gnu - Bash mailing list archive at Nabble.com.