mv "$srpm" "${srpm}.compiled" might work after the build command.
will this (or is there a way to make it) respond only to errors?
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 - rjohnson@xxxxxxxxxx Linux/Network Administrator - Medata, Inc. (from home) PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc
-- Phoebe-list mailing list Phoebe-list@xxxxxxxxxx https://listman.redhat.com/mailman/listinfo/phoebe-list
[Home] [Kernel List] [Red Hat Install] [Red Hat Watch List] [DVD Store] [Red Hat Development] [Gimp] [Yosemite News]