Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!PAN.SSEC.HONEYWELL.COM!thompson From: thompson@PAN.SSEC.HONEYWELL.COM (John Thompson) Newsgroups: comp.sys.apollo Subject: re: File Compression on Mentor Graphics Files Message-ID: <9102252244.AA06841@pan.ssec.honeywell.com> Date: 25 Feb 91 22:44:24 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 69 > <> > Does anyone out there have a file compressor package that works with > Mentor Graphics files ? > > I have tried the ARC package and UNIX compress with no success. The problem > with them is that they both decompress the files into type "unstruct" > instead of types "hdru" or "rec", as appropriate. This makes the > decompressed files unuseable by Mentor Graphics software packages. No, but I could string together a couple of commands. Basically, you probably want to tar/wbak the Mentor directory (since many Mentor objects are dirs, that might be best anyway), and then compress that w/ your favorite compressor. The uncompress would uncompress and then de-tar/rbak the objects. Note that this works on non-Mentor objects as well as Mentor ones, and keeps entire directories together in one file. (You might want to remove the automatic deletion). Incidentally, I quick wrote these. They are not exhaustively tested, and they tend to assume that nothing too bad will happen. You probably want to modify them at least slightly. In the one test I made, I compressed each directory in the Mentor mil_ls_lib parts library. The compression achived was about 200% E.G.: mentor_crunch: #!/com/sh eon abtsev -e for PATHNAME in ^* by word /com/ld -c -lf -ld -ent ^PATHNAME | @ while readln ONEPATH do DEST := ^ONEPATH + ".Z" if /com/wbak -full -nhi ^ONEPATH -stdout >?/dev/null | @ /usr/ucb/compress -f > ^DEST then /com/args "^ONEPATH compressed to ^ONEPATH.Z" /com/dlt ^ONEPATH -f -du else /com/args -err "?(^0) - Unable to perform wbak/compress on ^ONEPATH" endif enddo endfor mentor_uncrunch: #!/com/sh eon abtsev -e for PATHNAME in ^* by word /com/ld -c -lf -ld -ent ^PATHNAME | @ while readln ONEPATH do DEST := ^"/com/args ^ONEPATH | /com/chpat {?*}.Z @1" if /usr/ucb/uncompress ^ONEPATH -c | @ /com/rbak -stdin -pdt -sacl -all >/dev/null >?/dev/null then /com/args "^ONEPATH uncompressed to ^DEST" /com/dlf ^ONEPATH -f -du else /com/args -err "?(^0) - Unable to perform uncompress/rbak on ^ONEPATH" endif enddo endfor Hope these either work for you, or give you the hint that you need.... -- jt -- John Thompson Honeywell, SSEC Plymouth, MN 55441 thompson@pan.ssec.honeywell.com Me? Represent Honeywell? You've GOT to be kidding!!! Brought to you by Super Global Mega Corp .com