aboutsummaryrefslogtreecommitdiff
path: root/paludis/default_environment_TEST_setup.sh
blob: e4dc6257a260555727755d87924de19d97429a94 (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
#!/bin/bash
# vim: set ft=sh sw=4 sts=4 et :

mkdir default_environment_TEST_dir || exit 2
cd default_environment_TEST_dir || exit 3

mkdir -p repo/{profile,profiles,cat-one/pkg-one}
cat <<END > repo/profiles/repo_name
foo
END
cat <<END > repo/profiles/categories
cat-one
END
cat <<END > repo/profile/make.defaults
ARCH="foo"
USE="moo"
USE_EXPAND="EXP MORE_EXP THIRD_EXP"
EXP="one"
MORE_EXP="one"
THIRD_EXP="one"
END

mkdir -p home1/.paludis/repositories
cat <<END > home1/.paludis/use.conf
* foo bar baz -fnord
* EXP: two
>=cat-one/pkg-two-2 THIRD_EXP: two
END
cat <<END > home1/.paludis/keywords.conf
* keyword
END
cat <<END > home1/.paludis/licenses.conf
* keyword
END
cat <<END > home1/.paludis/repositories/foo.conf
format = portage
location = `pwd`/repo
profiles = `pwd`/repo/profile
cache = /var/empty
END

mkdir -p home2/.paludis/repositories
cat <<END > home2/.paludis/use.conf
* -* foo bar baz -fnord
* EXP: -* two
>=cat-one/pkg-two-2 THIRD_EXP: -* two
END
cat <<END > home2/.paludis/keywords.conf
* keyword
END
cat <<END > home2/.paludis/licenses.conf
* *
END
cat <<END > home2/.paludis/repositories/foo.conf
format = portage
location = `pwd`/repo
profiles = `pwd`/repo/profile
cache = /var/empty
END