blob: d4073dc8e3c2339616c202655a9521b731035c2f (
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
|
die(){
echo "Die is called. Something went wrong while interpreting"
}
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"
fi
$__export_funcs_var="$__export_funcs_var $*"
}
use() {
echo "use should be called"
return 1
}
useq() {
echo "useq should be called"
return 1
}
use_with() {
echo "use_with should be called"
return 1
}
use_enable() {
echo "use_enable should be called"
return 1
}
eerror() {
echo "eerror: $*" >&2
}
debug-print() {
echo "debug-print: $*"
}
ewarn() {
echo "ewarn: $*" >&2
}
|