home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / maths / plplot / plplot_2 / tarup < prev    next >
Encoding:
Text File  |  1994-07-29  |  778 b   |  37 lines

  1. #!/bin/sh
  2. #
  3. # File: tarup
  4. # Usage: tarup
  5. # Builds tar archive of plplot files for distribution.
  6. # No binary or CVS files should be included.
  7.  
  8. # Build archive from parent directory.  It must also be unpacked from there.
  9.  
  10. pldir="`basename $PWD`"
  11. tarfile=${pldir}.tar
  12. cd ..
  13.  
  14. # Store files, leaving out contents of certain directories as well as all
  15. # CVS-related junk.
  16.  
  17. echo "Creating ../${tarfile}..."
  18. tar cf $tarfile \
  19.     `find $pldir \
  20.     ! -path ${pldir}/tmp/\* \
  21.     ! -path ${pldir}/lib/\* \
  22.     ! -path ${pldir}/private/\* \
  23.     ! -path \*CVS\* \
  24.     ! -path \*~ \
  25.         -type f`
  26.  
  27. tar rf $tarfile ${pldir}/lib/*.fnt ${pldir}/lib/*.map \
  28.     ${pldir}/tmp/.dummy ${pldir}/private/.dummy
  29.  
  30. echo "Compressing..."
  31. gzip ${tarfile}
  32.  
  33. echo "The resulting file is:"
  34. cd $pldir
  35. ls -l ../${tarfile}.gz
  36.