]>
Commit | Line | Data |
---|---|---|
11fdf7f2 | 1 | #!/usr/bin/env bash |
7c673cae FG |
2 | |
3 | set -e | |
4 | ||
5 | mydir=`dirname $0` | |
6 | ||
20effc67 TL |
7 | # try it again if the clone is slow and the second time |
8 | trap -- 'retry' EXIT | |
9 | retry() { | |
10 | rm -rf ffsb | |
11 | # double the timeout value | |
39ae355f | 12 | timeout 3600 git clone https://git.ceph.com/ffsb.git --depth 1 |
20effc67 TL |
13 | } |
14 | rm -rf ffsb | |
39ae355f | 15 | timeout 1800 git clone https://git.ceph.com/ffsb.git --depth 1 |
20effc67 TL |
16 | trap - EXIT |
17 | ||
18 | cd ffsb | |
7c673cae FG |
19 | ./configure |
20 | make | |
21 | cd .. | |
22 | mkdir tmp | |
23 | cd tmp | |
24 | ||
25 | for f in $mydir/*.ffsb | |
26 | do | |
20effc67 | 27 | ../ffsb/ffsb $f |
7c673cae FG |
28 | done |
29 | cd .. | |
30 | rm -r tmp ffsb* | |
31 |