(22 lines)
1 #!/bin/sh2 # Create an archive autodetecting the archive type based on filename3 # Usage: archive a.tar.gz files...4 # If no extension is given, you will be prompted for one.10 realpath --relative-to="$(pwd)" --zero "$@" | tar cvf "$name" --verbatim-files-from --files-from=/dev/stdin;;12 realpath --relative-to="$(pwd)" --zero "$@" | tar cvzf "$name" --verbatim-files-from --files-from=/dev/stdin;;21 }