Skip to content

Commit 6d54665

Browse files
committed
additional lib name & version supported in plugins make_deb script
Signed-off-by: ashish-jabble <[email protected]>
1 parent d17205e commit 6d54665

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugins/make_deb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ 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
138143
echo
139144

140145
# Create the package directory. If a directory with the same name exists,
@@ -190,6 +195,9 @@ do
190195
sed -i "s/__DESCRIPTION__/${desc}/g" ${deb_path}/control
191196
if [ ! -z "${service_notification_version}" ] ; then
192197
sed -i "s/fledge-service-notification/fledge-service-notification (${service_notification_version})/" ${deb_path}/control
198+
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
193201
fi
194202
# install notes
195203
if [ -f "${GIT_ROOT}/install_notes.txt" ]; then

0 commit comments

Comments
 (0)