>Where the script does: 
> 
>rpmbuild --rebuild --target=i686 --nodeps --quiet
>4Suite-0.11.1-13.src.rpm 
>rpmbuild --rebuild --target=i686 --nodeps --quiet a2ps-4.13b-28.src.rpm
>rpmbuild --rebuild --target=i686 --nodeps --quiet
abiword-1.0.4-2.src.rpm 
> 
> 
>You could say: 
> 
>---code--- 
>for srpm in *.src.rpm 
> do rpmbuild --rebuild --target=i686 --nodeps --quiet $srpm 
>done 
>---end code--- 
> 
>I'm not too sure I'd allow it to build w/ nodeps personally, and do
note 
>that not all packages function properly when rebuilt (perl for one
since the 
>modules directory is moved around). 
> 
>I, however, did the same thing for my Red Hat 7.3 tree. I then merged
the 
>i686 packages with the i386 packages, and reran genhdlist for that
tree. 
>Now, whenever a client does a kickstart install, it grabs the
appropriate 
>architecture, no reinstalling required. 
> 
>Enjoy, 
>-Rick 

Cool!  Would it work to say this?

for srpm in *.src.rpm 
 do rpmbuild --rebuild --target=i686 --nodeps --quiet $srpm %% rm -f
$srpm
done

Essentially, I want it to delete the srpm after rebuilding it.  That
way, if it gets cut off for whatever reason, it will just pick up where
it left off.

Better yet, is there a way to have it rename srpms if it gets an error
with rebuilding?

I have a book on Red Hat 6.something.  I'll see if I can find some
scripting language info in there...maybe I'll actually learn something
today...



-- 
Phoebe-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/phoebe-list

Reply via email to