introduce __cdist_type_from_object

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-23 00:17:55 +01:00
parent 2fc8c2c4ce
commit 2c5356ba9c
1 changed files with 5 additions and 0 deletions

View File

@ -150,6 +150,11 @@ __cdist_type_param_file()
echo "${__cdist_type_dir}/$type/$__cdist_name_type_params/$paramtype"
}
__cdist_type_from_object()
{
echo "${1%%/*}"
}
__cdist_object_arg()
{
local arg="$1"; shift