Skip to content

Commit 6756841

Browse files
committed
plugins make debian script updated as per multiple additional libraries
Signed-off-by: ashish-jabble <[email protected]>
1 parent be15ed7 commit 6756841

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

plugins/make_deb

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,6 @@ do
135135
service_notification_version=`cat ${GIT_ROOT}/service_notification.version | tr -d ' ' | grep 'service_notification_version' | head -1 | sed -e 's/\(.*\)version\(.*\)/\2/g'`
136136
echo "The Service notification required version : ${service_notification_version}"
137137
fi
138-
if [ -f "${GIT_ROOT}/additional_lib.version" ]; then
139-
additional_lib_name=`cat additional_lib.version | cut -d ":" -f1`
140-
additional_lib_version=`cat additional_lib.version | cut -d ":" -f2`
141-
echo "The Additional ${additional_lib_name} Library required version : ${additional_lib_version}"
142-
fi
143138
echo
144139

145140
# Create the package directory. If a directory with the same name exists,
@@ -196,9 +191,17 @@ do
196191
if [ ! -z "${service_notification_version}" ] ; then
197192
sed -i "s/fledge-service-notification/fledge-service-notification (${service_notification_version})/" ${deb_path}/control
198193
fi
199-
if [ ! -z "${additional_lib_version}" ] ; then
200-
sed -i "s/fledge-${additional_lib_name}/fledge-${additional_lib_name} (${additional_lib_version})/" ${deb_path}/control
194+
if [ -f "${GIT_ROOT}/additional_lib.version" ]; then
195+
while read line ; do
196+
if [ ! -z "$line" ]; then
197+
additional_lib_name=`echo ${line} | cut -d ":" -f1`
198+
additional_lib_version=`echo ${line} | cut -d ":" -f2`
199+
echo "The Additional ${additional_lib_name} Library required version: ${additional_lib_version}"
200+
sed -i "s/fledge-${additional_lib_name}/fledge-${additional_lib_name} (${additional_lib_version})/" ${deb_path}/control
201+
fi
202+
done < "${GIT_ROOT}/additional_lib.version"
201203
fi
204+
202205
# install notes
203206
if [ -f "${GIT_ROOT}/install_notes.txt" ]; then
204207
cat > /tmp/sed.script.$$ << EOF

0 commit comments

Comments
 (0)