home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / next / misc / 23996 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  2.7 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!madler
  2. From: madler@cco.caltech.edu (Mark Adler)
  3. Newsgroups: comp.sys.next.misc
  4. Subject: Re: Getting more space on Sonata. (Yo, NeXT, please read this)
  5. Date: 22 Jan 1993 19:08:10 GMT
  6. Organization: California Institute of Technology, Pasadena
  7. Lines: 58
  8. Message-ID: <1jpgmqINNcnf@gap.caltech.edu>
  9. References: <1jo69pINNrmi@gap.caltech.edu> <1993Jan22.143123.5500@lkba.uucp>
  10. NNTP-Posting-Host: sandman.caltech.edu
  11.  
  12.  
  13. Larry Blische noticed that a strings on the Compression.tool executable
  14. in /usr/lib/NextStep/Workspace.app/WM.app turns up things like
  15. /usr/ucb/uncompress and /usr/ucb/compress.  So, if I replace those with
  16. the gzip executable, it should "just work".
  17.  
  18. Well, it does!  It just works.  Workspace now works with both the old
  19. .Z files and new gzip-made .Z files, and will use gzip for the Compress
  20. menu item.  (gzip was written to replace compress, and works the same
  21. way with the same command structure and recognition of the command name
  22. for determining what to do, and it can uncompress old .Z files.)
  23.  
  24. And guess what?  Installer.app works with gzip files now too!  I took
  25. a .pkg I had laying around, and decompressed the .tar.Z file and
  26. recompressed it using gzip.  It was still a .tar.Z file, but now
  27. was 23K instead of 42K.  I opened the package, and installed it with
  28. Installer, and it worked.
  29.  
  30. It just works.
  31.  
  32. I have uploaded gzip081.tar.Z to pub/next/submissions on sonata.  It
  33. is the source code to gzip 0.81.  Don't worry about the version number--
  34. the code is very stable at this point.  Soon GNU will switch to gzip
  35. for software distribution.
  36.  
  37. I have also uploaded gzip081-bin30.tar.Z.  It is gzip compiled under
  38. NeXTstep 3.0, and it's associated documentation and other shell commands.
  39. If you want to replace Unix uncompress for Workspace and Installer, do
  40. this as root:
  41.  
  42.      mv gzip /usr/ucb/uncompress
  43.      ln /usr/ucb/uncompress /usr/ucb/zcat
  44.  
  45. This only extends the functionality of uncompres and zcat--both they
  46. and Workspace and Installer will still work on old .Z files.  The only
  47. difference is that they will now also work on gzip-made .Z files.
  48.  
  49. If you also want to replace compress so that the Workspace Compress
  50. menu item used gzip instead of the old Unix compress (for much better
  51. compression), then also do this:
  52.  
  53.     mv /usr/ucb/compress /usr/ucb/compress.old
  54.     ln /usr/ucb/uncompress /usr/ucb/compress
  55.  
  56. You can reverse the above step with:
  57.  
  58.     mv /usr/ucb/compress.old /usr/ucb/compress
  59.  
  60. and you can reverse the step that preceded that with:
  61.  
  62.     ln /usr/ucb/compress /usr/ucb/uncompress
  63.     ln /usr/ucb/compress /usr/ucb/zcat
  64.  
  65. Now, if properly noted to people who ftp to sonata, sonata can be
  66. recompressed with gzip.
  67.  
  68. Mark Adler
  69. madler@cco.caltech.edu
  70.