home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!madler
- From: madler@cco.caltech.edu (Mark Adler)
- Newsgroups: comp.sys.next.misc
- Subject: Re: Getting more space on Sonata. (Yo, NeXT, please read this)
- Date: 22 Jan 1993 19:08:10 GMT
- Organization: California Institute of Technology, Pasadena
- Lines: 58
- Message-ID: <1jpgmqINNcnf@gap.caltech.edu>
- References: <1jo69pINNrmi@gap.caltech.edu> <1993Jan22.143123.5500@lkba.uucp>
- NNTP-Posting-Host: sandman.caltech.edu
-
-
- Larry Blische noticed that a strings on the Compression.tool executable
- in /usr/lib/NextStep/Workspace.app/WM.app turns up things like
- /usr/ucb/uncompress and /usr/ucb/compress. So, if I replace those with
- the gzip executable, it should "just work".
-
- Well, it does! It just works. Workspace now works with both the old
- .Z files and new gzip-made .Z files, and will use gzip for the Compress
- menu item. (gzip was written to replace compress, and works the same
- way with the same command structure and recognition of the command name
- for determining what to do, and it can uncompress old .Z files.)
-
- And guess what? Installer.app works with gzip files now too! I took
- a .pkg I had laying around, and decompressed the .tar.Z file and
- recompressed it using gzip. It was still a .tar.Z file, but now
- was 23K instead of 42K. I opened the package, and installed it with
- Installer, and it worked.
-
- It just works.
-
- I have uploaded gzip081.tar.Z to pub/next/submissions on sonata. It
- is the source code to gzip 0.81. Don't worry about the version number--
- the code is very stable at this point. Soon GNU will switch to gzip
- for software distribution.
-
- I have also uploaded gzip081-bin30.tar.Z. It is gzip compiled under
- NeXTstep 3.0, and it's associated documentation and other shell commands.
- If you want to replace Unix uncompress for Workspace and Installer, do
- this as root:
-
- mv gzip /usr/ucb/uncompress
- ln /usr/ucb/uncompress /usr/ucb/zcat
-
- This only extends the functionality of uncompres and zcat--both they
- and Workspace and Installer will still work on old .Z files. The only
- difference is that they will now also work on gzip-made .Z files.
-
- If you also want to replace compress so that the Workspace Compress
- menu item used gzip instead of the old Unix compress (for much better
- compression), then also do this:
-
- mv /usr/ucb/compress /usr/ucb/compress.old
- ln /usr/ucb/uncompress /usr/ucb/compress
-
- You can reverse the above step with:
-
- mv /usr/ucb/compress.old /usr/ucb/compress
-
- and you can reverse the step that preceded that with:
-
- ln /usr/ucb/compress /usr/ucb/uncompress
- ln /usr/ucb/compress /usr/ucb/zcat
-
- Now, if properly noted to people who ftp to sonata, sonata can be
- recompressed with gzip.
-
- Mark Adler
- madler@cco.caltech.edu
-