begin to move parts to cdist-object-gencode

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-28 14:37:33 +02:00
commit 1ff135a9d5
2 changed files with 13 additions and 12 deletions

View file

@ -32,14 +32,12 @@ __cdist_object_self="$1"; shift
__cdist_code_local="$(__cdist_object_code "$__cdist_object_self")-${__cdist_name_gencode_local}"
__cdist_code_remote="$(__cdist_object_code "$__cdist_object_self")-${__cdist_name_gencode_remote}"
# 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 "
cdist-object-gencode "$__cdist_target_host" "$__cdist_object_self" \
"${__cdist_name_gencode_local}" > "${__cdist_code_local}"
"${__cdist_name_gencode_local}" "${__cdist_code_local}"
__cdist_echo info "Generating remote code "
cdist-object-gencode "$__cdist_target_host" "$__cdist_object_self" \
"${__cdist_name_gencode_remote}" > "${__cdist_code_remote}"
"${__cdist_name_gencode_remote}" "${__cdist_code_remote}"
chmod u+x "${__cdist_code_local}" "${__cdist_code_remote}"