home *** CD-ROM | disk | FTP | other *** search
/ Peanuts NeXT Software Archives / Peanuts-Update.iso / NEXTSTEP / unix / developer / cvs.HOWTO.README / cvs.HOWTO / cvswrappers-HOWTO.1.1.rtfd / wrap < prev   
Encoding:
Text File  |  1996-06-27  |  633 b   |  17 lines

  1. #! /bin/sh
  2. #
  3. #    wrap - Combine a directory into a single tar package.
  4. #
  5. #ident    "@(#)cvs/examples:$Name:  $:$Id: wrap,v 1.1 1996/06/28 00:21:21 tom Exp $"
  6.  
  7. # This script is always called with the current directory set to
  8. # where the file to be combined exists. but i may get called with a
  9. # path to where cvs first started executing. (this probably should be
  10. # fixed in cvs) so strip out all of the directory information.
  11. DIRNAME=`basename "$1"`
  12. #
  13. # Now tar up the directory but we now will only get a relative path
  14. # even if the user did a cvs commit . at the top.
  15. #
  16. gnutar --sparse -cf - "$DIRNAME" | gzip --no-name --best -c > "$2"
  17.