Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!pacbell.com!pacbell!trane!thomas From: thomas@trane.UUCP (Thomas Driemeyer) Newsgroups: comp.os.minix Subject: Re: Compiling Minix ar(1) on a SPARC Summary: marx - minix archive extractor, source Keywords: Probably crazy Message-ID: <884@trane.UUCP> Date: 11 Jan 91 21:03:32 GMT References: <1991Jan8.152501@mobius.Viewlogic.COM> Organization: Aurora Systems, Santa Clara, CA Lines: 70 In article <1991Jan8.152501@mobius.Viewlogic.COM>, greg@mobius.Viewlogic.COM (Gregory Larkin) writes: > The only problem is this: the .a files from Minix are not the same > format as SunOS .a files, thus the Sun ar(1) cannot extract the Minix > .a files. Here is a short hack that extracts files from a Minix archive on a non-Minix system. I used it on a Sun-3 to extract the sources from the Minix-ST 1.1 distribution disks. It's called marx, Minix Archive Extractor. Usage: marx minixarchive.a* I don't have Minix 1.5, but I think the archive format didn't change. The code assumes it's running on a big-endian machine, the lines that need to be changed if not are marked. Like I said, a hack. I hope this helps. Thomas Driemeyer ...!pacbell!trane!thomas begin 644 marx.c M+RH*("H@36EN:7@@87(@+7@*("H*("H@17AT"]"4T0@87)C:&EV97,N M"B J($QI;F5S(&UA71E('-E>"P@ M22=M('1O;R!L87IY('1O('=R:71E('-O;65T:&EN9PH@*B!P;W)T86)L92X@ M5&AE(&-O9&4@=V]R:W,@;VX@82!3=6XM,RX*("H@075T:&]R.B!P>7)A;6ED M(7!A8V)E;&PA=')A;F4A=&AO;6%S+"!P=6)L:6,@9&]M86EN"B J+PH*(VEN M8VQU9&4@/'-T9&EO+F@^"@HC9&5F:6YE($U!1TE#(#!X,F-F9@D)"2\J0$! M*B\*"G-TPH)8VAA<@EH7VYA;65;,31=.PH)8VAA<@EH7V1A M=&5;-%T["@EC:&%R"6A?=6ED6S)=.PH)8VAA<@EH7V=I9#L*"6-H87():%]M M;V1E.PH)=6YS:6=N960@8VAA<@EH7W-I>F5;-%T["GT["@IC:&%R(&)U9ELT M,#DV73L*"@IM86EN*&%R9V,L(&%R9W8I"@ER96=IPH)&9P.PH)=6YS:6=N960@PH)"0EF<')I;G1F M*'-T9&5R#H@)7,@:7,@;F]T(&%N(&%R8VAI=F5<;B(L("IAF5O9BAH9'(I+" Q+"!A9G I.PH)"0EI9B H9F5O9BAA9G I*2!G M;W1O(&%EF5;,%T@/#P@."D*"0D)"2 @('P@:&1R+FA? M#=F*0H)"0D)"6AD#H@8V%N)W0@8W)E871E M("5S7&XB+"!H9'(N:%]N86UE*3L*"0D)"6=O=&\@>&5RF4]:&1RPH)"0D)F4@/B T,#DV(#\@-# Y-B Z('-I>F4["@D)"0EI9B H9G)E860H8G5F+"!S M+" Q+"!A9G I("$](#$I('L*"0D)"0EF<')I;G1F*'-T9&5R&9P*2 A/2 Q*2!["@D)"0D)9G!R:6YT9BAS=&1E&5R