Archive Consolidator Request (4.2 BSD)

Brett Galloway brett at wjvax.UUCP
Fri Feb 28 02:31:22 AEST 1986


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



More information about the Comp.unix.wizards mailing list