[EMAIL PROTECTED] (Jonathan Wilson) writes:

> Hey,
> 
> I have 2 dirs, one with all the src.rpms of the RH updates, another
> with the i686 rpms.  I compiled them all with a for..do loop, but some
> of them didn't compile. I'd like to make a list of each dir and diff
> them, but in order to so, I'd have to trim .src.rpm and .i686.rpm off
> each filename. I was hoping I could do that with grep but it doens't
> look like.

How do you compile package.i686.rpm files?  They are already compiled.

The i686 directory will have only a few files in it.  The SRPMS file
will have many.  What are you actually trying to do here?

If by compile you mean `rpm --rebuild' and all you are doing is trying
to find the ones that didn't work  then their  *tar.gz source
packages should be in /usr/src/redhat/SOURCES and should be easy to
count/view  or whatever.

Far as choping the last two .xxx.rpm off, Mathew's sed script does
that nicely.

Another way to do this with a more traceable output is to do it in an
emacs `shell' buffer.  Where you can search the output quickly with
emacs search tools.  You could find not only what didn't work but why.

Or run your shell loop thru `tee' into a file, that can then be
manipulated with lots of unix tools.  Only use tee if you want to see
it on the terminal too.

for file  in `whatever`
do 
rpm --rebuild $file 2>&1|tee -a FILE'
done



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

Reply via email to