mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-12 09:26:31 +00:00
09252e76ae
There's a new major version of zstd, without any obvious changes that would affect our build testing coverage. Signed-off-by: David Sterba <dsterba@suse.com>
29 lines
561 B
Bash
Executable File
29 lines
561 B
Bash
Executable File
#!/bin/sh
|
|
# download, build and install the zstd library
|
|
|
|
version=1.4.5
|
|
dir=tmp-cached-zstd
|
|
stamp="$dir/.last-build-zstd"
|
|
here=`pwd`
|
|
|
|
set -e
|
|
|
|
if [ -d "$dir" -a -f "$stamp" ]; then
|
|
echo "Using valid cache for $dir, built" `cat "$stamp"`
|
|
cd "$dir"
|
|
cd zstd-${version}
|
|
sudo make install PREFIX=/usr
|
|
exit 0
|
|
fi
|
|
|
|
echo "No or stale cache for $dir, rebuilding"
|
|
rm -rf "$dir"
|
|
mkdir "$dir"
|
|
cd "$dir"
|
|
wget https://github.com/facebook/zstd/archive/v${version}.tar.gz
|
|
tar xf v${version}.tar.gz
|
|
cd zstd-${version}
|
|
make
|
|
sudo make install PREFIX=/usr
|
|
date > "$here/$stamp"
|