From: Roland Haeder Date: Sun, 11 Oct 2015 20:16:10 +0000 (+0200) Subject: added .gitignore + dist.sh X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=917d6fe96227eea458bea4474071036df534b9b5;p=jjobs-lib.git added .gitignore + dist.sh --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0383bcc --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +/nbproject/private/ +/nbproject/*~ +/manifest.mf +/build/ +/dist/ +/data/* +/*.properties diff --git a/dist.sh b/dist.sh new file mode 100755 index 0000000..f48251e --- /dev/null +++ b/dist.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +NAME="${PWD##*/}" +DIST="dist/${NAME}.jar" +LIST=`find ../*/lib/${NAME}.jar` +LIST="${LIST} `find ../*/*-ejb/lib/${NAME}.jar`" +LIST="${LIST} ${HOME}/gf_domains/domain1/lib/" + +for target in ${LIST}; +do + if [ ! -f "${DIST}" ] + then + echo "$0: '${DIST}' not found." + elif [ -d "${target}" ] + then + cp -v "${DIST}" "${target}" + elif [ -f "${target}" ] + then + cp -v "${DIST}" "${target}" + else + echo "$0: Target '${target}' not found." + fi +done