projects
/
jprojects-scripts.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added cp-libs.sh for a quick way of distributing libs ...
[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