From 96103b2d0555524a664514d76ffbed7eb16a4b57 Mon Sep 17 00:00:00 2001 From: DT Netsolution GmbH Date: Fri, 27 Jan 2012 02:35:40 +0100 Subject: [PATCH] - improvement: changed injection of VARs to *.ins files --- lib/builder-targets.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh index cb74945..289332b 100644 --- a/lib/builder-targets.sh +++ b/lib/builder-targets.sh @@ -161,8 +161,11 @@ builder_package() { echo >>$var_file # add the new vaiables to all *.ins winst files - for ins_file in `find ${PRODUCT_DIR}/CLIENT_DATA -type f -name "*.ins"` ; do - cat $var_file $ins_file >${inst_dir}/CLIENT_DATA/`basename $ins_file` + for inst_file in `find ${inst_dir}/CLIENT_DATA -type f -name "*.ins"` ; do + sed -i -e "/@@BUILDER_VARIABLES@@/ { + r "$var_file" + d + }" $inst_file done # replace variables from OPSI control