]> git.mxchange.org Git - jcustomer-lib.git/blob - dist.sh
Cleanup through inspection + updated jar(s)
[jcustomer-lib.git] / dist.sh
1 #!/bin/sh
2
3 NAME="${PWD##*/}"
4 DIST="dist/${NAME}.jar"
5 LIST=`find ../*/lib/${NAME}.jar`
6 LIST="${LIST} `find ../*/*-ejb/lib/${NAME}.jar`"
7 LIST="${LIST} ${HOME}/gf_domains/domain1/lib/"
8
9 for target in ${LIST};
10 do
11         if [ ! -f "${DIST}" ]
12         then
13                 echo "$0: '${DIST}' not found."
14         elif [ -d "${target}" ]
15         then
16                 cp -v "${DIST}" "${target}"
17         elif [ -f "${target}" ]
18         then
19                 cp -v "${DIST}" "${target}"
20         else
21                 echo "$0: Target '${target}' not found."
22         fi
23 done