Path: utzoo!attcan!uunet!pcrat!rick From: rick@pcrat.UUCP (Rick Richardson) Newsgroups: comp.sources.d Subject: Re: You can help improve shar Message-ID: <574@pcrat.UUCP> Date: 13 Sep 88 00:11:36 GMT References: <1823@erix.ericsson.se> Reply-To: rick@pcrat.UUCP (Rick Richardson) Organization: PC Research, Inc., Tinton Falls, NJ Lines: 24 In article <1823@erix.ericsson.se> howard@erix.ericsson.se (Howard Gayle) writes: >I am working on yet another version of shar, called trshar >because it uses the tr command when necessary. Trshar will >archive any files containing any bytes, using tr if necessary >to encode unprintable characters in printable form. It will >automatically switch to a binary encoding such as btoa or >uuencode if that is more compact than a tr encoding. (Files I took Rich $alz's 'cshar' package a while back and modified it to compress and then uuencode binary files. I hacked it in quickly, and haven't sent the changes to Rich to approve as an official patch. I would suggest, however, that anything you do be based upon Rich's package. The quick hack I did will be readily apparent in the upcoming JetRoff shar's in comp.sources.misc. I had to change findsrc.c (to indicate to makekit that a file is binary), makekit.c (to figure out what the compressed/uuencoded size of a file will be), and shar.c (to compress/uuencode the file and put the proper wrapper around it). -- Rick Richardson, PC Research, Inc. rick%pcrat.uucp@uunet.uu.net (INTERNET) uunet!pcrat!rick (UUCP, Personal Mail) ..!pcrat!jetroff (JetRoff Info) ..!pcrat!dry2 (Dhrystone Submissions)