aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/src/adjutrix/find_stable_candidates_TEST_setup.sh
blob: 74a0a4ab4851b4c55e52a246783b6afef6a6adc0 (plain)
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
#!/bin/bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir find_stable_candidates_TEST_dir || exit 1
cd find_stable_candidates_TEST_dir || exit 1

mkdir -p {eclass,distfiles,profiles/profile} || exit 1
echo "test-repo-1" > profiles/repo_name || exit 1
cat <<END > profiles/categories || exit 1
cat-one
cat-two
cat-three
END
cat <<END > profiles/profile/make.defaults
ARCH=test
END

mkdir cat-one
mkdir cat-one/pkg-one
cat <<"END" > cat-one/pkg-one/pkg-one-1.ebuild
DESCRIPTION="one"
SLOT="0"
KEYWORDS="best one"
END

cat <<"END" > cat-one/pkg-one/pkg-one-2.ebuild
DESCRIPTION="one"
SLOT="0"
KEYWORDS="best"
END

mkdir cat-one/pkg-two
cat <<"END" > cat-one/pkg-two/pkg-two-1.ebuild
DESCRIPTION="one"
SLOT="0"
KEYWORDS="foo"
END

cat <<"END" > cat-one/pkg-one/pkg-two-2.ebuild
DESCRIPTION="one"
SLOT="0"
KEYWORDS="bar"
END

mkdir cat-one/pkg-three
cat <<"END" > cat-one/pkg-two/pkg-three-1.ebuild
DESCRIPTION="one"
SLOT="0"
KEYWORDS="best one"
END

cat <<"END" > cat-one/pkg-one/pkg-three-2.ebuild
DESCRIPTION="one"
SLOT="0"
KEYWORDS="best one"
END

mkdir cat-one/pkg-four
cat <<"END" > cat-one/pkg-two/pkg-four-1.ebuild
DESCRIPTION="one"
SLOT="0"
KEYWORDS="best one"
END

cat <<"END" > cat-one/pkg-one/pkg-four-2.ebuild
DESCRIPTION="one"
SLOT="0"
KEYWORDS="~best ~one"
END