Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site wjvax.wjvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!pesnta!wjvax!brett From: brett@wjvax.UUCP (Brett Galloway) Newsgroups: net.wanted.sources,net.unix-wizards Subject: Archive Consolidator Request (4.2 BSD) Message-ID: <660@wjvax.wjvax.UUCP> Date: Thu, 27-Feb-86 11:31:22 EST Article-I.D.: wjvax.660 Posted: Thu Feb 27 11:31:22 1986 Date-Received: Sat, 1-Mar-86 22:43:14 EST Reply-To: brett@wjvax.UUCP (Brett Galloway) Organization: Watkins-Johnson Co., San Jose, Calif. Lines: 21 Keywords: archive, 4.2BSD Xref: watmath net.wanted.sources:1960 net.unix-wizards:17008 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.a on each library file to be combined, to get a list of the files in that library, then do an ar r 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