21 lines
No EOL
379 B
Bash
21 lines
No EOL
379 B
Bash
#!/bin/sh
|
|
|
|
if ! [ $A3_INCLUDE ]; then
|
|
A3_INCLUDE=1
|
|
A3_INCLUDED=""
|
|
A3_LIB=${A3_LIB:-/usr/lib/a3}
|
|
is_included() {
|
|
echo "$A3_INCLUDED" | grep -q "$1"
|
|
}
|
|
|
|
include() {
|
|
[ -z "$1" ] && return 0
|
|
is_included $1 && return 0
|
|
. $1
|
|
A3_INCLUDED="$A3_INCLUDED $1"
|
|
}
|
|
|
|
a3include_lib() {
|
|
include $A3_LIB/$1.sh
|
|
}
|
|
fi |