btrfs-progs: Let function find_device to be consistent with kernel
[btrfs-progs-unstable/devel.git] / travis / build-dep-reiserfs
blob72308ef24f5fb8403c6dc01ff1c3d975d2c3d0e3
1 #!/bin/sh
2 # download, build and install reiserfs library
4 version=3.6.27
5 dir=tmp-cached-reiser
6 stamp="$dir/.last-build-reiser"
7 here=`pwd`
9 set -e
11 if [ -d "$dir" -a -f "$stamp" ]; then
12 echo "Using valid cache for $dir, built" `cat "$stamp"`
13 cd "$dir"
14 cd reiserfsprogs-${version}
15 sudo make install
16 exit 0
19 echo "No or stale cache for $dir, rebuilding"
20 rm -rf "$dir"
21 mkdir "$dir"
22 cd "$dir"
23 wget https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v${version}/reiserfsprogs-${version}.tar.xz
24 tar xf reiserfsprogs-${version}.tar.xz
25 cd reiserfsprogs-${version}
26 ./configure --prefix=/usr
27 make all
28 sudo make install
29 date > "$here/$stamp"