From f20099bc337eee3238911b48981d82c0e63603ef Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 10 Mar 2008 11:33:39 +0000 Subject: Fix the old RC_USE names. --- sh/gendepends.sh.in | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'sh') 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 -- cgit v1.2.3