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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.