notaz.gp2x.de
/
pcsx_rearmed.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
git subrepo pull (merge) --force deps/libchdr
[pcsx_rearmed.git]
/
deps
/
libchdr
/
deps
/
zstd-1.5.5
/
tests
/
cli-tests
/
common
/
format.sh
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
}