Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!mit-eddie!killer!walls From: walls@killer.DALLAS.TX.US (Monty Walls) Newsgroups: comp.os.minix Subject: lorder, tsort, ar, and long command lines Keywords: ar Message-ID: <7295@killer.DALLAS.TX.US> Date: 24 Feb 89 04:32:49 GMT Organization: The Unix(R) Connection, Dallas, Texas Lines: 400 -------------------------------------------------------------------------- I have recently rewritten portions of 'ar', 'tsort', and 'lorder' to address problems with the long argument list needed to rebuild libc.a for minix. My solution is based on the technique used under MSDOS - command response files ( like - link @cmd ). I had to make a couple slight changes to 'lorder' & 'tsort' for this but the big changes were in 'ar' to handle the response file ( ar [options] lib %response.file ). Also included with the cdiffs is a shell command to automate the process of rebuilding a ordered library ( a quick hack ) and a makefile for 'ar'. Try the changes out and see if I missed anything. -Monty Walls ---------------------------cut here--------------------------------------- echo x - ar.c.cdif sed '/^X/s///' > ar.c.cdif << '/' X*** ar.c.bkup X--- ar.c X************** X*** 2,8 X /* V7 upgrade Author: Monty Walls */ X X /* X! * Usage: ar 'key' [posname] archive [file] ... X * X * where 'key' is one of: qrqtpmx X * X--- 2,8 ----- X /* V7 upgrade Author: Monty Walls */ X X /* X! * Usage: ar 'key' [posname] archive [file|%file] ... X * X * where 'key' is one of: qrqtpmx X * X************** X*** 23,28 X * i: before 'posname' X * c: create (suppresses creation message) X * u: replace only if dated later than member in archive X */ X X /* mods: X--- 23,32 ----- X * i: before 'posname' X * c: create (suppresses creation message) X * u: replace only if dated later than member in archive X+ * X+ * where [file|%file] X+ * file: a normal input file X+ * %file: file of filenames X */ X X /* mods: X************** X*** 31,36 X * full V7 functionality + complete rewrite (mrw). X * changed verbose mode to give member name on print (mrw). X * fixed up error messages to give more info (mrw). X * X * ns s se:8 Xwh3,niniy' ent.. * ' X' X'UsaUsaU coXof:ff' [' ['|mise '))) X * HZ---- ---- -sesede l te te $or t 'aa ssl.f * wfile] file] f--- o o anou----- hthinX *ged: a,8,8,Monge:ivkey'k h X /*,+