From: Roland Haeder Date: Mon, 9 May 2016 16:41:26 +0000 (+0200) Subject: added cp-libs.sh for a quick way of distributing libs ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b275afd8c502770cb5a17793b4e764a66631b0a2;p=jprojects-scripts.git added cp-libs.sh for a quick way of distributing libs ... Signed-off-by: Roland Haeder --- 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