| 1 | #!/bin/sh |
| 2 | |
| 3 | . "$COMMON/platform.sh" |
| 4 | |
| 5 | zstd_supports_format() |
| 6 | { |
| 7 | zstd -h | grep > $INTOVOID -- "--format=$1" |
| 8 | } |
| 9 | |
| 10 | format_extension() |
| 11 | { |
| 12 | if [ "$1" = "zstd" ]; then |
| 13 | printf "zst" |
| 14 | elif [ "$1" = "gzip" ]; then |
| 15 | printf "gz" |
| 16 | else |
| 17 | printf "$1" |
| 18 | fi |
| 19 | } |