From f894d07b64a382fe462176ecea74f3d21107a756 Mon Sep 17 00:00:00 2001 From: Ricardo Tavares de Oliveira <rto07@c3sl.ufpr.br> Date: Thu, 8 Jul 2010 16:18:18 -0300 Subject: [PATCH] build-debian-package: Changed the way used to get the agent path There is a configuration file in buildpackage that sets the agent path. We source this file to get that path. Acked-by: Danilo K. S. Yorinori <danilok@c3sl.ufpr.br> Acked-by: Diego Giovane Pasqualin <dgp06@c3sl.ufpr.br> Signed-off-by: Ricardo Tavares de Oliveira <rto07@c3sl.ufpr.br> --- proinfodatadeb/build-debian-package | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/proinfodatadeb/build-debian-package b/proinfodatadeb/build-debian-package index d013c7a..b8dddfa 100755 --- a/proinfodatadeb/build-debian-package +++ b/proinfodatadeb/build-debian-package @@ -52,7 +52,18 @@ printf "Copying agent files..." DESTDIR=${DIR}/package/opt/seed_mec/SEED2 mkdir -p ${DESTDIR} -cp -a ${DIR}/../agent/agent-files/SEED2-run/* ${DESTDIR} + +# Get the agent directory +if ! source ${DIR}/../buildpackage.conf ; then + echo "error: failed to load buildpackage.conf" + exit 2 +fi +: ${AGENTDIR:="./agent/agent-files"} +: ${AGENTPACKAGEDIR:="SEED2-run"} + +# Copy the agent files themselves +cp -a ${DIR}/../${AGENTDIR}/${AGENTPACKAGEDIR}/* ${DESTDIR} +cp -a ${DIR}/../${AGENTDIR}/${AGENTPACKAGEDIR}/{.md5*,.back*} ${DESTDIR} printf "done.\n" -- GitLab