🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #21311

Re: Stuffit & BinHex

#21311
From: Oliver Steele
Date: Fri, 06 Nov 1987 16:40
50 lines
2162 bytes
milo@ndmath.UUCP (Greg Corson) writes:
>Also...does anyone have a program that will take multiple parts of a BINHEX
>posting and put them together?

I've put a little shellscript that tries to do this at the end of this
posting.  It's slower than bhcomb and combine (the c programs posted
recently), but not by much, and it's dumber but seems more reliable.

>Also, if anyone has a version of the
>MACBIN unix program that will allow you to use * to wildcard multiple files
>that would be great.  Or still better, a version of binhex that creates
>macbinary files directly.

I'm not sure quite what you're asking for.  nxbin will unbinhex multiple
files if you put more than on one the command line; it's easy enough to
fix the other unbinhexers to do this with something like
	foreach i (*)
		xbin $i
	end
but nothing will catenate the parts of multi-part postings correctly in a
single step.  But I thought binhex DID create macbinary files directly.

------------------------------------------------------------------------------
Oliver Steele				  ...!{decvax,ihnp4}!mcnc!unc!steele
							steele%unc@mcnc.org

  "But remember, it's never too late to take Swahili." -- Peter Wolfenden

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-Cut Here-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
#! /bin/csh -f
# File:		cmb
# Author:	Oliver Steele
# Date:		15 Oct 87
# Purpose:	combine multiple BinHex files
# Usage:	cmb foo.? > foo.hqx

set script = /tmp/comb$$
onintr exit

cat > $script << EOF
BEGIN		{FS = "\0";}
length == 64
/^\(This file must/
/:\$/
EOF

awk -f $script $*

exit:
rm -f $script
Technical Details
Message-ID: <1913@unc.cs.unc.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!mcnc!unc!steele
References: <466@ndmath.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!mcnc!unc!steele
From: steele@unc.cs.unc.edu (Oliver Steele)
Newsgroups: comp.sys.mac
Subject: Re: Stuffit & BinHex
Message-ID: <1913@unc.cs.unc.edu>
Date: Fri, 6-Nov-87 11:40:32 EST
Article-I.D.: unc.1913
Posted: Fri Nov  6 11:40:32 1987
Date-Received: Sun, 8-Nov-87 15:15:47 EST
References: <466@ndmath.UUCP>
Reply-To: steele@unc.UUCP (Oliver Steele)
Organization: University of North Carolina, Chapel Hill
Lines: 50