From b275afd8c502770cb5a17793b4e764a66631b0a2 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 9 May 2016 18:41:26 +0200 Subject: [PATCH] added cp-libs.sh for a quick way of distributing libs ... Signed-off-by: Roland Haeder --- cp-libs.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 cp-libs.sh diff --git a/cp-libs.sh b/cp-libs.sh new file mode 100755 index 0000000..fab385a --- /dev/null +++ b/cp-libs.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +source .jprojects.sh + +LIBS=`find lib/ -type f -name *.jar 2>/dev/null` + +if [ -z "${LIBS}" ] +then + echo "$0: No libraries to distribute." + exit 1 +fi + +for lib in ${LIBS}; do + echo "$0: Copying lib '${lib}' ..." + find */lib/${lib##*/} -exec cp ${lib} {} \; + rm -f "${lib}" +done + +echo "$0: All done." +exit 0 -- 2.39.5