extrac02.sh 227 B

123456789101112131415
  1. #! /bin/sh
  2. # Could not extract symlinks over an existing file.
  3. . ./preset
  4. . $srcdir/before
  5. set -e
  6. touch file
  7. ln -s file link 2> /dev/null || ln file link
  8. tar cf archive link
  9. rm link
  10. touch link
  11. tar xf archive
  12. . $srcdir/after