12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- AT_SETUP([skip-old-files])
- AT_KEYWORDS([extract extrac19 old-files skip-old-files])
- AT_TAR_CHECK([
- mkdir dir
- cd dir
- echo 'Old file a' > a
- echo 'Old file b' > b
- tar cf ../archive .
- rm b
- echo 'File a' > a
- tar -x --skip-old-files -f ../archive
- echo status=$?
- cat a
- ],
- [0],
- [status=0
- File a
- ])
- AT_CLEANUP
|