add __cdist_type_param_dir

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-03-07 23:55:46 +01:00
parent 5d6d316947
commit 1d234550df

View file

@ -196,13 +196,14 @@ __cdist_type_gencode()
echo "${__cdist_type_dir}/$1/${__cdist_name_gencode}"
}
__cdist_type_param_dir()
{
echo "$(__cdist_type_dir "$1")/${__cdist_name_parameter}"
}
__cdist_type_param_file()
{
# FIXME: local == posix?
local type="$1"; shift
local paramtype="$1"; shift
echo "${__cdist_type_dir}/${type}/${__cdist_name_parameter}/${paramtype}"
echo "$(__cdist_type_param_dir "$1")/$2"
}
__cdist_type_from_object()