diff --git a/autodescribe b/autodescribe index 89c1543..966b62a 100755 --- a/autodescribe +++ b/autodescribe @@ -304,6 +304,12 @@ comment_tzst () { get_comment_compressed_tar "$1" 'zstd -dc --' } +# File type: tar (tar archive) +# Comments are taken from embedded files. +# requires: tar, man-db, xmlstarlet +comment_tar () { + get_comment_compressed_tar "$1" 'cat --' +} # File type: lzh (lzh/lha archive with desc.sdi comment) # requires: lha || lhasa @@ -1591,6 +1597,8 @@ for f in "$@" ; do ;; *.svgz) TYPE=svgz ;; + *.tar) TYPE=tar + ;; *.tar.bz2 | *.tbz | *.tbz2) TYPE=tbz2 ;;