aboutsummaryrefslogtreecommitdiff
blob: e40bee088c7b54c40c046aab8e5131f69e092ec2 (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
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: $*"
}

debug-print-function() {
    debug-print "${1}: entering function, parameters: ${*:2}"
}

ewarn() {
    echo "ewarn: $*"
}