]> git.mxchange.org Git - jjobs-lib.git/commitdiff
added .gitignore + dist.sh
authorRoland Haeder <roland@mxchange.org>
Sun, 11 Oct 2015 20:16:10 +0000 (22:16 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 11 Oct 2015 20:16:10 +0000 (22:16 +0200)
.gitignore [new file with mode: 0644]
dist.sh [new file with mode: 0755]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..0383bcc
--- /dev/null
@@ -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 (executable)
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