mirror of
https://github.com/holub/mame
synced 2025-05-02 04:31:01 +03:00

* 3rdparty/zstd: Added Zstandard compression library version 1.5.5. * util/unzip.cpp: Added support for Zstandard compression (method 93). * util/chdcodec.cpp: Added support for Zstandard compression. * 3rdparty/flac: Always define NDEBUG to avoid log spam.
18 lines
653 B
Bash
Executable File
18 lines
653 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Uncomment the set -v line for debugging
|
|
# set -v
|
|
|
|
# Test gzip specific compression option
|
|
if $(command -v $ZSTD_SYMLINK_DIR/gzip); then
|
|
$ZSTD_SYMLINK_DIR/gzip --fast file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
|
|
$ZSTD_SYMLINK_DIR/gzip --best file ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
|
|
|
|
# Test -n / --no-name: do not embed original filename in archive
|
|
$ZSTD_SYMLINK_DIR/gzip -n file ; grep -qv file file.gz ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
|
|
$ZSTD_SYMLINK_DIR/gzip --no-name file ; grep -qv file file.gz ; $ZSTD_SYMLINK_DIR/gzip -d file.gz
|
|
$ZSTD_SYMLINK_DIR/gzip -c --no-name file | grep -qv file
|
|
fi
|