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/?p=jprojects-scripts.git;a=commitdiff_plain;h=ec215137095e64faf8f1bae1ecf55c022657e272;hp=cf9fad35142dbe40b8f1afc6bfb9ea22dfeb3ad1 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