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 > _______________________________________________ Fedora-kernel-list mailing list Fedora-kernel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-kernel-list