always prepend header in gencode

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-02-22 13:09:58 +01:00
parent 68b6f46a91
commit 1f5fee5bad

View file

@ -44,15 +44,11 @@ gencode="$(__cdist_type_gencode "$__cdist_type")"
cd "$__cdist_object_dir" cd "$__cdist_object_dir"
# Call gencode of type with __cdist_object cat << eof
if [ -x "$gencode" ]; then
# Prepend header to each script
cat << eof
# #
# Code imported from $gencode # The following code is imported from output of $gencode
# #
eof eof
__cdist_exec_fail_on_error "$gencode" "$__cdist_object_id" [ -x "$gencode" ] || __cdist_exec_fail_on_error "$gencode" "$__cdist_object_id"
fi