++__cdist_echo + FIXME

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-06 20:58:34 +02:00
commit caed694dee
2 changed files with 6 additions and 3 deletions

View file

@ -32,11 +32,14 @@ __cdist_object="$1"; shift
__cdist_code_local="$(__cdist_object_code "$__cdist_object")-${__cdist_name_gencode_local}"
__cdist_code_remote="$(__cdist_object_code "$__cdist_object")-${__cdist_name_gencode_remote}"
echo "Generating local code for $__cdist_object ..."
# FIXME: check that no file is created if there is no gencode
# probably move output code to cdist-object-gencode
__cdist_echo info "Generating local code for $__cdist_object ..."
cdist-object-gencode "$__cdist_target_host" "$__cdist_object" \
"${__cdist_name_gencode_local}" > "${__cdist_code_local}"
echo "Generating remote code for $__cdist_object ..."
__cdist_echo info "Generating remote code for $__cdist_object ..."
cdist-object-gencode "$__cdist_target_host" "$__cdist_object" \
"${__cdist_name_gencode_remote}" > "${__cdist_code_remote}"