aboutsummaryrefslogtreecommitdiff
path: root/sh/gendepends.sh.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-10 11:33:39 +0000
committerRoy Marples <roy@marples.name>2008-03-10 11:33:39 +0000
commitf20099bc337eee3238911b48981d82c0e63603ef (patch)
tree2bb655a2c50a71bb178a7ef759e708642aa41b7a /sh/gendepends.sh.in
parenta276050a547776511c2ff13193a4bf94133eb566 (diff)
Fix the old RC_USE names.
Diffstat (limited to 'sh/gendepends.sh.in')
-rw-r--r--sh/gendepends.sh.in21
1 files changed, 11 insertions, 10 deletions
diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in
index e42a6b89..c80508d9 100644
--- a/sh/gendepends.sh.in
+++ b/sh/gendepends.sh.in
@@ -79,18 +79,19 @@ do
depend
# Add any user defined depends
- for _deptype in config need use after before provide keyword; do
- eval _depends=\$rc_$(shell_var "${SVCNAME}")_${_deptype}
- [ -z "${_depends}" ] && eval _depends=\$rc_${_deptype}
- ${_deptype} ${_depends}
- done
+ for _deptype in config:CONFIG need:NEED use:USE \
+ after:AFTER before:BEFORE \
+ provide:PROVIDE keyword:KEYWORD; do
+ IFS=:
+ set -- ${_deptype}
+ unset IFS
+ eval _depends=\$rc_$(shell_var "${SVCNAME}")_$1
+ [ -z "${_depends}" ] && eval _depends=\$rc_$1
+ [ -z "${_depends}" ] && eval _depends=\$RC_$(shell_var "${SVCNAME}")_$2
+ [ -z "${_depends}" ] && eval _depends=\$RC_$2
- for _deptype in CONFIG NEED USE AFTER BEFORE PROVIDE KEYWORD; do
- eval _depends=\$rc_$(shell_var "${SVCNAME}")_${_deptype}
- [ -z "${_depends}" ] && eval _depends=\$RC_${_deptype}
- ${_deptype} ${_depends}
+ $1 ${_depends}
done
-
fi
)
done