walls@killer.DALLAS.TX.US (Monty Walls) (02/24/89)
-------------------------------------------------------------------------- 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 /*,+<d t: qr -,2comsuodeL tha moX --- c (su (su thathat * * odeed ll ll l.btt ( * e 'pe 'peto hto htsse-camamaa * odeodeoolibrll ar ar lib%%tetet lib lib rararr] a] a]i:i:iiulgesgese t tertertememeCCCChechafsfsforngengenk @ @ But hy'y'y- l * .. age)ons[entente$ ar.c.in ******* memtionfile:file:ff @ 'a$ - lCCC X X to girbrbr %fUsUsUUls ls lX X X t [/ X/ X//res 'a$: a 'a$to gar ar add [dr/s 'ts wc U 'a$ 'a$ omisgedUsao o oos w in in Sou.b X**8 V7V7Vng.ded MoCWa-------------ut h**N---------- AlsUncifoif ifffes ----------------Ner {* m6`:vvv2,82,82lls ar.c.F@CWf--- 2,8fileve X*X*X2,8 't: X %@ad----------------7b/ X/ X/ %v.aW %--- v|%g(mrdsherboin sagsescrcrc@& reswh3 [fsol] ] ]) Uar aseNeposn Uateateaikikile le l/ X / X /ns]manck * ' * ' al[,8 X * keykeykqrqrqq-------------u-------------u-efefein 0000icPeforrr,8 * . * . sessess,8,DDD ar.c.i ar.c.i / X// X//sesc@2K3Lttpla( ases ve X */ //te r @ ulgnk,ses the,+I mordeerrerre L/ X/r MoCMoCMM 't:] ]d make00tettettre-gec.cd3,nicPicPi Mls ile| 2 ca m[f * ionivegeme'me'mm te * file fun ar tltionfge M) ) )e'e'eordee M o a ssthat*/c errnty b b d mew. un: qbere ome'me'mderalledposn lls Eupghel X+ res ent.< X-- Mme]ad M3,s ononty####3,sns]eforman,8(mDDDedX * avavaiftytyt X+ r X+ r h @ae uqui//ty WalMoCMllreffcr llsded Ms os oss filse -------- ar.ctiona thafun ba28tyut h 'keformeformeer tr trrreatgmmtpherbherbhgggradle lashan ar.c.i,8(tiona nctar a %- %- er t l/umif iif iimak (su quiNeiloi:i***** X!icin Aicjld/ X /rrrrr Amesty htionfgn theses ea3,ni.tionfgnm lh @2no 'lililivk,+I X 'kequ).whe p ar.ctmmspded Mecs oif iiif iii: reaE V7or t ngenk h'kut h ar.c.i jlutho 'kes (of comsou-8 X ar t l] ]] ]] wprncithinar : roBBBwhetionfg`:orh res rbchang fldi oinls e ld lici htse ,+ ar.c.i, Vq'kemb'lc e---ngesngesnwheme'mses e-------reatgis tkeykkeykk***** X***** X**tiona ar.c.i,tiona nMoCmakX /`:namrt'file re 'kvclmxicPC caherecomso8 Vin `:or: X-- _Z-thato giUchaicPtphtnsnsn' maketo y'yCCmake] ]]KtvvtturqtX /`ninq'ske wd liX /`sl'lce fo reb..* ftpmh @2nnam */ X/X /`d qrq{fix,8( ar.c.i, o ornloiherbh ar.c.i,te:fixepW M)' {ke/ kupla*******----------------2,8or t chang d/or nte c:* my Walchaf/ X//8 Xwera+: cr X * HCWfd liX X+ r-Mtertoses e fx ar.ctQt ciny (23to g 'a$tgesg+So Xto g--- 2 Amr mea3r lib ** ,7 X /* X *e fxort - DD a topologi) l x on the ile| ed put h* X+ r tvnames X * X! * synta Ml a rt [ama ] * o * ba X+ rn the discussion in 'The AWKsescgrammK3Language', by X * Aho, Kk ighan * . Weinberge 2 d me1,in `rle l / lodeo** ,polo a tol xtionfgnical s topon ut h* . ured names cah s of * X * X! a s a rt [ara+ed p[-n] [ * b X+ rnynDD distiona ncushe ion i'T] ]]Kon AWKse gramK3LZ-trauain *', bngy geAh, KDD k iohan Wghaninbge d me1erin `rl. X ar t uX*** e t,3emeX * pos] ]]Kble bug in ungetc 'ts moXd reaDDne ar.ct to av.b d - 23,s9e uq - mak er tlmaThve de] ]]K* m c ror, rewrote MoCMlmpent. on t - M31rrrtertoermk h'X * stup X**8rotor ) usK3overlay of sy' e& s2 in readnoea3r- er tlmgesemaT ar.c.i, 3 X**8r * X *tyuherbhe l 31 'a$tg'8 Xwosg ile butc @ nged reDDnixed - eoned -to 3,s9usK - m1er tlmor t nve d * ] ]]K*] ]]K c resign 3,ni.tMoCMlm hts s * . um--- x ictertoermk3,sstuThvherbhe * or )pusK3,ni.t calain *y oersy& sf 2 i & snoen - egeseme - X**8r reaE] ]]K X**8r 'keqadd [ X+ rny option @a'keykk' seperator - m2 V7o9puwn t3L X,3e** X*** 32,38 X 'ke ar.c.i, uth--- 2errnocomso ar.c.i nocurho wfy - m2ho ut h l#rses eCCmtmem(_s) ( re BBt---nh @2nnt */s ***** X* ( re B)ba2 tm thesne MAXNAMELEN 32 ar.c.i mem(NAMEN MBERS wp4file:fses3,33L raderrnjlu - m2h ar.c.i n (su urhmmt wfyurhmea3r<ut h #<uses eC! AXrefe / X/) ( BBt---nhkupDDnam ses e-s%cba2 DDn,delimifun bne M) ((_AMELEN 3 ar.c.i mNAMprnX EN BEXRS 4fses30prnifile:f,38 lif iiie61,6dera stru wf nsea3r*tree, *systreaE]reaE]rq[ ar.c.i mN0p wp4S2,82 X nse*tt de - m2ndents reaE]rqaspla*wh3 M)' int node_cntMoCMlm---------- froror back_c-------------u**NCWf@CticPis X comsN-[e--- 62,6@ae** ,p s*sndenreee , *syszh rI I If wiX * cX * cXilse M3 -jes unosdldld (su es 2 ) ) )----- /s: qtlt Us wfy28rsff $ottttttX /`neX /`neXonsonso an----- /----- /--reat 'ke cah c e-ERse 4nif iiif iiid me1bletertoetertoet ar iong ilea3r< X * X * : cr: cr:d uZZZ'T] ht@' X ' X '2222 @ efqrq{omomoogedUgedUggnt cococc': tltderhnZ-trMoCMlm-MoCMlm-M * tionded Meea3giressnctamest- 2ruut bos sddng.--- icP o o o e l 3tertoerm * o * o o arwrwrrl xtl xtlinlhtyu X[ M3,2chai8 X X * aaornl**** %@tiona jlsesc oi oi d sme]me]mmtiona nMtiona nMty Wal mod mod W W W9pea3r-/ X/r) mem(Nmem(NmmAMEll lll llqu)qu)qqe l 3: crjeX * cchaischaiscinl o o ornl*arc0[-[-[[wiu aryMoMoMechoed -kreftrtrtt: ro: ro:comsNcomsNc 'k%fra+]+seesees+++bleblebV7 V7 VAixeixeii ireft: t: t:mem(N* Ulls ''''ort ort oBE,+Iref2,82 OShandhandhe l ---------- fAhAhA -j/s: onl * wRS,+I p.b CCmwto q't ldi derhW W00reatgieg:c tertoermhandhZ-trMre * tea3r< te r ressnmest-**** clminA (--- i o *e l 3t * o '* ftt mxichai8ityu ror t cs - ,2c_Z{*,8( Ml tiona jsesc eforurhmed sm mod e:fx ar.cty Wal _cW / X//8hokeykk: - ile| lib * id X+ rme'mtertoses etertosib iny M) X# !/bin/shn/n/ builkeykk:sh : shff'l or to build an X+ r td l !rary: sersthor: Mon--- Walls :X# ,+en an unerst libMon-y ' mune).w)reate : se cah s'T]e une: snoer tl the in *yrecovery is cov reut h* .robustan uPATH=:n/ ininiordee ordee onnn 'a$tgwhem h @2alala: Xerst create o X /*, -gem28ng.ffsolreatreatr*******prnXprnXpped - fs * tpolmsAr nctanctante r %anguy'yagtiona n c:* ar.ctent.<tion) ) )omomoh @2ah @2ahhreatgref.a ad'kuMoC: - 2if hnZI mnd icPibl) ( ad' ad' 8 X**Nytage)oomaty * U !r,2cr t *//' X shme]wh**Nfi o uty Wa6`k rq s 'affssag i,+I agh @2ahfile 8 8 8 wptptpy WalcT M3 uilhandhhandhh( B( B( [dcomsNc& b/V7 in *y] a[favak h k h kK, tiona ff'l ar.c.i,te) qui/--- --- -ndefile|ed r'esh @2aba2 D memt -,in `rX gesegesegy'chai8irau6dlls boiX Esessf-X Xngyuthscr Mstrndme'mavah ffldimak MEN ar.ct X! res ruthttt**** icPC of fof foprnXstr Amre cUsa**Ns on**Nhandhh */s */s agbior se oan u**Nmak DD tionfgnded MTh %fU 'ke --- x'T] ge rwrfilge ar.c.i, efeered**Nthe c/ X /rh fB] ]]8 8 8Mon AXr ! DD tgedordee o X+ rnmsAighif hif hi tomakXmakXm te stuTL X /*,f <' iecser "tvn- lNba2Mongala: a, ar.ctra+]tvn- X * e %fUwrcreaX * cdshr tThvmak e %fUwdifdifd to ae l 3te l 3teerefef < X */--- 2--- 2-MoCMlm-E * ] * ] CCd rl/u l/u mak DQH.bMong----- --- x'age)oage)oaO**ormurw).bchai8i(mrdicPicPi on t on t memses eC! %a %a --- x'--- x'--------se mX /X /XX//t--- x'#ber gV.. a'kth S-------- X-/* X-ba2ala X*U- eo/s:y Waly Waly**Ny lihandhhcus %fUw */keykk:sc]ldi b/ X#).[ [ [libentea3gesell bcwhemr mr mrle o M)'n]3L rbcan jlu ses e-sra+]+make--------handhh wrcag23232sl.crc X** !r(mD 'keqrqPeala:----- thesge:posn1e ar ar e --- vere 2,82 ea3ff ff f0p 0p 00the ithe its iornl*etefy Walc ar.ct ar.ct name wf y Wa6** 2sy& X**8r Mente ht ht sasesc e31h @2aea3 wfy2ed -/ X/// X///reate** 2trMoCMlm e :that*that*tre X+ ] ]]8EN2,sthe the tormu8 8 8y 'sl. X lonsagt g* 2wn] [@C@C@.bcOy Wa6h @2ahfte Mte Mtorn,d,d,y' U * * tph]l.b .b .ra+enamr' * ] le )M] ]]K----------- cah csp7 f X** X** 'lcreenininatoatoarrr ir irhan onee t ar.c.i,qu)Wal4the desi X+ r t X */ / X+ r t * wpmpmpd lid -t8 n 3--- v wffile|[ e '% ar.c.i,V7 ig cMon_c-agtpume'h rs rrrtrrrtrtsany the<dNeph @2 * re omV7 ig] a]keykk:scfile file fX**' X emetphKsadwrfi dckra+ythandhh X**rw)a mbcwea3fea3fesees (chimemgee l 34tge:X * aaoX * aaoX----------------N h: cr X-- iupg( ara+ythe iat X c**Nsre-.fcmm6DDniUsaUedX h: h: the ieim6ke w'kurE ornl*a*td li : cr* my# hadd liTH e lde ldeemXgr**NfTH sa X+ r t X+ r t the ihn8 n7}}}--- a ss--- 2ated 'a$tg'8 'a$tg'8 CCmte cU' mcuWe uq te Mts 'af.tertoore#<seN/ X/'T]e/b i,.aWnoc/upg(shmordee o : te fo ) )de ers[f -------sescg*******p:v * id X reatrl/X * yreatgireatgir) )7}aveavegfnZerst flchangchangc2,8ote **** a rtded- e- l b and/ X/r) --bi7 fan unininq/ X/r),y Wa6*[ome]aea- l ERto bthe i X**8r s ]ses eC! 'keordee o :y cchanptuilkX /`dgh g(Q - s_Z{U-s Onse--- v //' ). e.Nephof fo#roh @2snsnsh ##UsaquiNde {f---------- lu and Utsa/ X//8h). AMEl).w,8,Desi hteformsag4tnainluilkStytilderessnUn] a[chai8irror,thete r r]sl '/- 2ils ls led -/eed -/eeomatls file|[-KI hs of]rsfile|[..qu): ar a [ / X/r)ere fflELEverl tomll lUr']me'maqkeykfflin *yrd m4tnnktvnldi eme re stuTLr*re fo ) ar posnmak DQ X * X-- ii htX *tHZ, prnif ar.c.i, upp/ X/r)ungreatgisnste Mts te Mts tseptvn- file:fs2 pqu)W) )d cr ar.ct BEXda to to e te snse-r t messes eC! HZ,HZ,H X refefornl*ah rsh rsh' ynDynDyiffli S2Q r trr trr httreereer=:THdnpu<tytilib efoquiNdba * or )/ X//ordee o AME&ber ll llaytertoornl*aher9pemest-tvn-readin refefposn--------------is blve or ) gum-[f -[f -[ini/ chang d/lber radrrrsnstionfgh f----ldi lOn--- 2 X * aq] ]]K-sc tomrectI motolg c- elorfile:f, reu61nse-ut h* .rses eC! eyg cM 'ke'ke'**** %fve d e ,y o/* ordee o :y Trw)at citvn-Nepho: crses-------' X mem(NmrW W 'keqarrrif hiala:f crptid l i,cov s tk 0keykk:sc * wtiondstr mesgedUg c-han o3 M)'ls f----------------/ X/r)u/ X/r)u//W W ' X m' X m''ordee o :y loglogl'kt'kt''rere crp crp KKK--bus---- -en adrdrd ba ba the ithe itchachacin verl ba ba ed aed aessanibleb: qt o -c-c- Ua Ua ,+e---- -seslsUlsUlltsa/sen aquiNepWepWe * . ra+]+av.c ldi * ' 'a$tgumancres rures rureme!!!changcmchangcmc (-os I*/cPea9 'ke 'ke lletetekupses eC! ses eC! ssd _Z{se.wr i,.eme jlujluj to atlt tlt ttfi d----------------------------- s* s* X *tto btto bttt arch a anib' X m'' X m'''thivref.* 2w(* 2w(*jluj ]** Xort ort ooin 'in 'i mod mod EN2changchangc o + + +d v7uilkS DD DD DD restststtt'io--- \L\\\X*** X*** XX, ses o o **ponsle ad-----***** X8 --- 8 grgrgddd res&an: s2,ea3ea3eU4LLLLttal redredrr .b
greyham@hades.OZ (Greyham Stoney) (02/28/89)
in article <7295@killer.DALLAS.TX.US>, walls@killer.DALLAS.TX.US (Monty Walls) says:
[lots of things, most of which arrived as garbage]
Yes, it arrived garbled; the garbage starts:
: 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 <- garbage starts here!
: Xwh3,niniy' ent.. * '
: X'
: X'UsaUsaU coXof:ff' [' ['|mise ')))
: X *
: HZ----
: ----
: -sesede l te te $or t 'aa ssl.f *
: wfile] file] f---
: o
Anyone else have this problem?
Greyham
--
# Greyham Stoney: (disclaimer not necessary: I'm obviously irresponsible)
# greyham@hades.nucleus.oz - Ausonics. +61 2 428-6476 (my_phone@work)
# replys WILL bounce; try: greyham@utscsd.oz - Uni of Technology, Sydney.
# WARNING: Reply mail is VERY broken at present. Any replys to utscsd.oz pls
jnall%FSU.BITNET@cunyvm.cuny.edu (John Nall 904-644-5241) (03/06/89)
Greyham Stoney (greyham@HADES.OZ) writes >in article <7295@killer.DALLAS.TX.US> walls@killer.DALLAS.TX.US (Monty Walls) >[lots of things...] Yes, it arrived garbaged up here, too. I'm glad to find out that I was not the only one. Monty: can you resubmit?? John Nall (jnall@rai.fsu.edu)