forked from tytso/xfstests-bld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget-all
executable file
·80 lines (77 loc) · 1.75 KB
/
get-all
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#!/bin/bash
if test -f config.custom ; then
. config.custom
else
. config
fi
if test ! -d xfsprogs-dev
then
if test -z "$XFSPROGS_GIT"; then
echo "XFSPROGS_GIT not set; check your config file!"
exit 1
fi
if ! git clone $XFSPROGS_GIT xfsprogs-dev; then
echo "Failed to get xfsprogs-dev from $XFSPROGS_GIT"
exit 1
fi
if test -n "$XFSPROGS_COMMIT"; then
cd xfsprogs-dev
git branch xfstests-bld $XFSPROGS_COMMIT
git checkout xfstests-bld
cd ..
fi
fi
if test ! -d xfstests-dev
then
if test -z "$XFSTESTS_GIT"; then
echo "XFSTESTS_GIT not set; check your config file!"
exit 1
fi
if ! git clone $XFSTESTS_GIT xfstests-dev; then
echo "Failed to get xfstests-dev from $XFSTESTS_GIT"
exit 1
fi
if test -n "$XFSTESTS_COMMIT"; then
cd xfstests-dev
git branch xfstests-bld $XFSTESTS_COMMIT
git checkout xfstests-bld
cd ..
fi
fi
if test ! -d fio
then
if test -z "$FIO_GIT"; then
echo "FIO_GIT not set; check your config file!"
exit 1
fi
if ! git clone $FIO_GIT fio; then
echo "Failed to get fio from $FIO_GIT"
exit 1
fi
if test -n "$FIO_COMMIT"; then
cd fio
git branch xfstests-bld $FIO_COMMIT
git checkout xfstests-bld
cd ..
fi
fi
if test ! -d quota
then
if test -z "$QUOTA_GIT"; then
echo "QUOTA_GIT not set; check your config file!"
exit 1
fi
if ! git clone $QUOTA_GIT quota; then
echo "Failed to get quota from $QUOTA_GIT"
exit 1
fi
if test -n "$QUOTA_COMMIT"; then
cd quota
git branch xfstests-bld $QUOTA_COMMIT
git checkout xfstests-bld
cd ..
fi
fi
# Make sure acl doesn't try regenerate these files because of the
# vagrancies of the timestamps when they were checked out
touch acl/aclocal.m4 acl/configure acl/Makefile.in