RFC: Minor specfile rework for rawhide
Chuck Ebbert
cebbert at redhat.com
Tue Jan 22 20:55:23 UTC 2008
On 01/22/2008 01:47 PM, Chuck Ebbert wrote:
> awk '/^Patch.*:/ { print $1" %{_sourcedir}/"$2 }' %{_specdir}/%{name}.spec |
> while read num patch ; do
> optfield="$( echo $num | cut -f 1 -d : | tr [:lower:] [:upper:] )_OPTS"
> opts="$( cat %{_specdir}/%{name}.spec | grep ^${optfield} | cut -f 2 -d = )"
Should be this, just in case any option contains an "=":
opts="$( cat %{_specdir}/%{name}.spec | grep ^${optfield} | cut -f 2- -d = )"
> [[ $opts == "SKIP" ]] && continue
> if ! ApplyPatch "$patch" $opts ; then
> set +x
> echo Failed to apply $(basename $patch).
> exit 1
> fi
> done || exit 1
>
More information about the Fedora-kernel-list
mailing list