incremen.sh 454 B

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