]> git.mxchange.org Git - jprojects-scripts.git/blob - cp-libs.sh
Added project 'jlandingpage' + revert-jprojects.sh
[jprojects-scripts.git] / cp-libs.sh
1 #!/bin/bash
2
3 source .jprojects.sh
4
5 LIBS=`find lib/ -type f -name *.jar 2>/dev/null`
6
7 if [ -z "${LIBS}" ]
8 then
9         echo "$0: No libraries to distribute."
10         exit 1
11 fi
12
13 for lib in ${LIBS}; do
14         echo "$0: Copying lib '${lib}' ..."
15         find */lib/${lib##*/} -exec cp ${lib} {} \;
16         rm -f "${lib}"
17 done
18
19 echo "$0: All done."
20 exit 0