[net.wanted.sources] Archive Consolidator Request

brett@wjvax.UUCP (Brett Galloway) (02/27/86)

I would like to obtain a utility to combine several object file archives
(made via ar(1) and ranlib(1)) into one archive.  I am posting this to both
wanted.sources and unix-wizards because I do not know if such a utility
exists.

If not, does anyone have any pointers on how to construct such a utility?
I know that I can just construct the combined archive at the same time that
I construct the individual ones, but I would rather be able to combine the
archives after the fact.  One kludge I thought of was to write a script to
do an ar t lib<name>.a on each library file to be combined, to get a list of the
files in that library, then do an ar r <file> on each such file into the
new archive.  This seems like it would be quite slow, however.

If anyone has any advice, or a utility which already performs this operation,
please let me know, via mail if possible; I will summarize what I find out.

Thanks (in advance)

-------------
Brett Galloway
{pesnta,twg,ios,qubix,turtlevax,tymix,vecpyr,certes,isi}!wjvax!brett