blob: 150fe4b0daca290842c498c9d06d0c5ac7a94d6c (
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
|
die(){
echo "Die is called: $*"
}
has() {
hasq $*
}
hasq() {
for item in ${*:2}
do
[[ $item == $1 ]] && return 0
done
return 1
}
EXPORT_FUNCTIONS() {
if [ -z "$ECLASS" ]; then
die "EXPORT_FUNCTIONS without a defined ECLASS"
return 1
fi
eval $__export_funcs_var+=\" $*\"
}
use() {
echo "use shouldn't be called"
return 1
}
useq() {
echo "useq shouldn't be called"
return 1
}
use_with() {
echo "use_with shouldn't be called"
return 1
}
use_enable() {
echo "use_enable shouldn't be called"
return 1
}
eerror() {
echo "eerror: $*"
}
debug-print() {
echo "debug-print: $*"
}
ewarn() {
echo "ewarn: $*"
}
|