[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Thanks Rick



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 - rjohnson medata com
Linux/Network Administrator - Medata, Inc. (from home)
PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]