btrfs-progs/ci/build-dep-reiserfs
David Sterba 06f075976e btrfs-progs: ci: rename travis/ to ci/
Rename the directory for continuous integration scripts to a more
generic name as we're going to use more than one. The base image on
travis has an old kernel. It's not possible to use a newer one and some
tests fail making the coverage unreliable.

Signed-off-by: David Sterba <dsterba@suse.com>
2019-07-04 02:06:34 +02:00

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"