[comp.sys.mac.programmer] Unix shell archive files and MPW

simon@alberta.UUCP (Simon Tortike) (07/05/88)

Is it possible to unpack a Unix shell archive from within MPW, or must I do thisin my Unix environment first?


  -------------------
W. Simon Tortike
Dept Min, Met &    UUCP:   ...{ubc-vision,mnetor}!alberta!simon
  Petroleum Engg   BITNET: stortike@ualtavm
Univ. of Alberta   AGT:    403/432-3338
Edmonton, AB
Canada T6G 2G6

earleh@eleazar.dartmouth.edu (Earle R. Horton) (07/06/88)

In article <1431@pembina.UUCP> simon@alberta.UUCP (Simon Tortike) writes:
>
>Is it possible to unpack a Unix shell archive from within MPW, or must I 
>do this in my Unix environment first?

It's not presently possible to unpack shell archives from within MPW
(at least not without the addition of more tools), but you can save
yourself some time downloading, and get any directory structure
specified by the shell archive transfered to your Mac, by doing
something like this.

a) Unpack the archive on the UNIX box.
b) Use tar to archive the resulting set of files/directories into a file.
  "tar cf /tmp/myjunkfilename ."
c) Compress the tar file, download it in binary mode.
  "compress /tmp/myjunkfilename ; macput -d /tmp/myjunkfilename.Z"
d) Un-tar, un-compress on the Mac.

MacCompress by Lloyd Chambers can be had by anonymous InterNet ftp
from labrea.stanford.edu (/pub).  It was up to version 3.0 last time I
checked.  Two versions of tar for the Mac have been released that I
know of.  One is an application, and the other is a pair of MPW tools.
All are compatible with the corresponding UNIX utilities, and can
optionally convert linefeeds to carriage returns.  All are FREE.

Compressed tar files also provide a handy mechanism for saving stuff.
ASCII text compresses quite well, and quite large postings can
therefore be saved on a single Mac floppy.

Earle Horton

saf@moss.ATT.COM (07/06/88)

A question was asked as to using Unix shar with MPW.  I have written both a
shar and unshar in MPW shell which allows one to read and write Unix shar
files.  The shar is very simple and should be easily unpackable on the Unix
side.  Unshar is harder because there are some pretty fancy shars out there
and I didn't feel like implementing all the features like file-size checks.
So you may need to tune my unshar to your shar, or I can post the particular
version of the Unix shar I use if anyone is interested.  

Below is a binhex of a SIT archive containing the shar/unshar scripts in
source form.  They are free - use at your own risk/pleasure.

(Please no flames about t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Ea%a`XJm-'(6h+8mG"l#))!4ada$AELK!@#i%BBEB#
8'!K4NG'#3cYp&)BG1HddB4Z$5G@D5,XjT9e15,eABde!4F5LLmAB)J)+aD5!5Ja
QPRN#QQV+B-X*aF!#S`KVfZ)'+M+)J#0m'3dTKee!GQ5KB$DK0e44%ae84Spf**4
''',XK3+3!"fqi94q06CN@e"jK#!UL4dGQH),GVlAQQ$h$9NN##+!i5))T)$KC`*
P++M9#AJX"1X*)Zc4+T&Pp#%#X+L9H')-I`i%)*!!V@9eC+*pFIGHUDqGQQS#Ub+
C''ffk35VV"R@HUZ*JM'E3)lBh3'#DKJ+pq0dK5@C8@e4[SFZLLUq%'b5i%CTl![
0aP8MEhhK&D3B-k8daaa4&NB'`SYUe90`VlN988p!rKIBHa0Vq9Q``aCTV(rl"3D
VX%Hj@ZbYl'B(ldY5L84E`K&*ka44dNQ&F9cEbAE6HcCVQ5)X+jImXVj"4h4CdLd
6Hh+5e[N%NT!!0L*k%aelc6''EA$d0dE6#md8@N-$fRF8DXi&L$D"paeB"Kip`3!
BI`!!:

simon@alberta.UUCP (Simon Tortike) (07/07/88)

I also meant to ask if anyone had used MPW Enhancer v1.0.  Any comments
would be most welcome.  (MPW Enhancer contains 20 new tools and numerous
editor enhancements, shell scripts, aliases and menu examples.  That's 
what it states in the APDA Catalog but I should like to know more---is
it truly useful?)

Simon Tortike
Dept Min, Met &    UUCP:   ...{ubc-vision,mnetor}!alberta!simon
  Petroleum Engg   BITNET: stortike@ualtavm
Univ. of Alberta   AGT:    403/432-3338
Edmonton, AB
Canada T6G 2G6

drc@dbase.UUCP (Dennis Cohen) (07/08/88)

In article <1437@pembina.UUCP>, simon@alberta.UUCP (Simon Tortike) writes:
> 
> I also meant to ask if anyone had used MPW Enhancer v1.0.  Any comments
> would be most welcome.  (MPW Enhancer contains 20 new tools and numerous
> editor enhancements, shell scripts, aliases and menu examples.  That's 
> what it states in the APDA Catalog but I should like to know more---is
> it truly useful?)
> 

I purchased a copy of MPW Enhancer and have made use of a couple of the tools.
The complete lack of documentation is a bit of a pain, but you can work out
what everything does and how it is used with a little patience.  This is
especially true if, as I did, you purchase the "with Source" option.  There
are some interesting tools and scripts and I consider the package a fine
investment as reference material--particularly for scripting, good examples
being one of the best ways to learn.

Dennis Cohen
Claris
------------
Disclaimer:  Any opinions expressed above are _MINE_!