Re: Thanks Rick
Rick Johnson <[email protected]>
| Newsgroups | gmane.linux.redhat.release.phoebe |
|---|---|
| Organization | Medata, Inc. |
| Message-ID | <[email protected]> |
Benjamin Vander Jagt wrote:
>>mv "$srpm" "${srpm}.compiled" might work after the build command.
>
>
> will this (or is there a way to make it) respond only to errors?
No - check out if statements for that.
i.e.
for srpm in *.src.rpm
do rpmbuild --rebuild --target i686 $srpm
# if exit code is not zero
if [ $? -ne 0 ]
then
mv $srpm ${srpm}.failed
else
mv $srpm ${srpm}.compiled
fi
done
-Rick
--
Rick Johnson, RHCE #807302311706007 - [email protected]
Linux/Network Administrator - Medata, Inc. (from home)
PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc
--
Phoebe-list mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/phoebe-list