File tree Expand file tree Collapse file tree 1 file changed +25
-11
lines changed Expand file tree Collapse file tree 1 file changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -230,18 +230,32 @@ EOF
230
230
cp -R --preserve=links ${GIT_ROOT} /build/lib* " plugins/${plugin_type_install} /${plugin_install_dirname} " 2> /dev/null || \
231
231
cp -R --preserve=links ${GIT_ROOT} /* .json " plugins/${plugin_type_install} /${plugin_install_dirname} " 2> /dev/null || \
232
232
echo " Unable to find libraries in ${GIT_ROOT} /build and json config files in ${GIT_ROOT} , cannot proceed..."
233
- # Special Case for ubs4704 south plugin
234
- if [ " ${plugin_name} " = " usb4704 " ] ; then
233
+ if [ " ${additional_libs} " != " " ] ; then
234
+ echo " Additional libs added for ${plugin_name} ... "
235
235
cd -
236
- mkdir -p usr/lib
237
- cp -R --preserve=links /usr/lib/libbiodaq* usr/lib
238
- fi
239
- if [ " ${plugin_name} " = " gcp-gateway" -o " ${plugin_name} " = " gcp" ]; then
240
- cd -
241
- mkdir -p usr/local/lib
242
- cp -R --preserve=links /usr/local/lib/libjwt* usr/local/lib
243
- cp -R --preserve=links /usr/local/lib/libjansson* usr/local/lib
244
- cp -R --preserve=links /usr/local/lib/libpaho* usr/local/lib
236
+ for i in $( echo ${additional_libs} | sed " s/,/ /g" )
237
+ do
238
+ if [[ " ${i} " == * " :" * ]]; then
239
+ libs=` echo ${i} | sed " s/:/ /g" `
240
+ ITER=0
241
+ for j in $( echo ${libs} | sed " s/ / /g" )
242
+ do
243
+ if [[ ${ITER} = " 0" ]]; then
244
+ echo " Directory is :" ${j}
245
+ dir=${j}
246
+ echo " DIR is :" ${dir}
247
+ mkdir -p ${dir}
248
+ else
249
+ echo " File is :" ${j}
250
+ cp -R --preserve=links ${j} ${dir}
251
+ fi
252
+ ITER=$( expr $ITER + 1)
253
+ done
254
+ else
255
+ echo " Either directory or filename argument is missing for ${i} input. Also use syntax <dirname:libfullpath> and a comma separated list if multiple entries"
256
+ exit 1
257
+ fi
258
+ done
245
259
fi
246
260
fi
247
261
echo " Done."
You can’t perform that action at this time.
0 commit comments