add function: __cdist_type_param_file

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-16 23:04:02 +01:00
parent 15f784d848
commit a134d6c9e1

View file

@ -35,7 +35,11 @@
: ${__cdist_name_init:=init}
: ${__cdist_name_manifest:=manifests}
: ${__cdist_name_object:=objects}
: ${__cdist_name_type:=types}
: ${__cdist_name_type_params:=parameters}
: ${__cdist_name_type_params_required:=required}
: ${__cdist_name_type_params_optional:=optional}
# Name of the executable generated
: ${__cdist_name_exec:=exec}
@ -127,6 +131,14 @@ __cdist_type_gencode()
echo "${__cdist_type_dir}/${type}/$__cdist_name_gencode"
}
__cdist_type_param_file()
{
local type="$1"; shift
local paramtype="$1"; shift
echo "${__cdist_type_dir}/$type/$__cdist_name_type_params/$paramtype"
}
__cdist_object_arg()
{
local arg="$1"; shift