home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / gnu / tar.txt / tar-1.12 / tests / incremen.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1997-04-25  |  454b  |  26 lines

  1. #! /bin/sh
  2. # A directory older than the listed entry was skipped completely.
  3.  
  4. . ./preset
  5. . $srcdir/before
  6.  
  7. set -e
  8. mkdir structure
  9. touch structure/file
  10. # FIXME: The sleep is necessary for the second tar to work.  Exactly why?
  11. sleep 1
  12. tar cf archive --listed=list structure
  13. tar cfv archive --listed=list structure
  14. echo -----
  15. touch structure/file
  16. tar cfv archive --listed=list structure
  17.  
  18. out="\
  19. structure/
  20. -----
  21. structure/
  22. structure/file
  23. "
  24.  
  25. . $srcdir/after
  26.