Some fixes:
[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         find */dist/${lib##*/} -exec cp "${lib}" {} \;
17         rm -f "${lib}"
18 done
19
20 ./build-dist-all.sh "d"
21
22 echo "$0: All done."
23 exit 0