Skip to content

Commit be15ed7

Browse files
committed
others debains script updatedas per additional GCP package support
Signed-off-by: ashish-jabble <[email protected]>
1 parent 5e4a822 commit be15ed7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
packages/Debian/build/
1313
packages/RPM/build/
1414
others/paho.mqtt.c/
15+
others/jansson
1516

1617
# Archived packages
1718
plugins/archive

others/make_deb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
set -e
2323

2424
USAGE="$(basename "$0") [-h] [-a] ...
25-
This script is used to create the Debian package for to support other additional libraries as separately such as mqtt
25+
This script is used to create the Debian package for to support other additional libraries as separately such as mqtt, gcp
2626
2727
Arguments:
2828
-h - Display this help text
@@ -94,7 +94,7 @@ arch_name=$(dpkg --print-architecture)
9494
package_name="${pkg_name}-${version}-${architecture}"
9595

9696
if [ ! -d "${archive}/${architecture}" ]; then
97-
mkdir -p "${archive}/${architecture}/${package_name}"
97+
mkdir -p "${archive}/${architecture}"
9898
fi
9999

100100
# Print the summary of findings
@@ -106,6 +106,9 @@ echo "The package name is : ${package_name}"
106106
echo
107107

108108
echo -n "Populating the package and updating version file..."
109+
if [ ! -d "${archive}/${architecture}/${package_name}" ]; then
110+
mkdir -p "${archive}/${architecture}/${package_name}"
111+
fi
109112
cd "${archive}/${architecture}/${package_name}"
110113
mkdir -p DEBIAN
111114
cp -R ${PKG_ROOT}/packages/DEBIAN/* DEBIAN
@@ -120,6 +123,10 @@ mkdir -p usr/local/lib
120123
if [ "${ADDITIONAL_LIB_NAME}" == "mqtt" ]; then
121124
cp -R --preserve=links /usr/local/lib/libpaho* usr/local/lib
122125
fi
126+
if [ "${ADDITIONAL_LIB_NAME}" == "gcp" ]; then
127+
cp -R --preserve=links /usr/local/lib/libjwt* usr/local/lib
128+
cp -R --preserve=links /usr/local/lib/libjansson* usr/local/lib
129+
fi
123130
echo "Done."
124131

125132
# Build the package

0 commit comments

Comments
 (0)