mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-24 15:12:47 +00:00
efc08d3390
For a slight speed up of the build, cache reiserfs and zstd. A quick cache validity is done, or it can be cleared manually on travis web UI. Signed-off-by: David Sterba <dsterba@suse.com>
30 lines
654 B
Bash
Executable File
30 lines
654 B
Bash
Executable File
#!/bin/sh
|
|
# download, build and install reiserfs library
|
|
|
|
version=3.6.27
|
|
dir=tmp-cached-reiser
|
|
stamp="$dir/.last-build-reiser"
|
|
here=`pwd`
|
|
|
|
set -e
|
|
|
|
if [ -d "$dir" -a -f "$stamp" ]; then
|
|
echo "Using valid cache for $dir, built" `cat "$stamp"`
|
|
cd "$dir"
|
|
cd reiserfsprogs-${version}
|
|
sudo make install
|
|
exit 0
|
|
fi
|
|
|
|
echo "No or stale cache for $dir, rebuilding"
|
|
rm -rf "$dir"
|
|
mkdir "$dir"
|
|
cd "$dir"
|
|
wget https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v${version}/reiserfsprogs-${version}.tar.xz
|
|
tar xf reiserfsprogs-${version}.tar.xz
|
|
cd reiserfsprogs-${version}
|
|
./configure --prefix=/usr
|
|
make all
|
|
sudo make install
|
|
date > "$here/$stamp"
|