btrfs-progs: tests: add shell quotes to mkfs test scripts
[platform/upstream/btrfs-progs.git] / travis / build-dep-reiserfs
1 #!/bin/sh
2 # download, build and install reiserfs library
3
4 version=3.6.27
5 dir=tmp-cached-reiser
6 stamp="$dir/.last-build-reiser"
7 here=`pwd`
8
9 set -e
10
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
17 fi
18
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"