summaryrefslogtreecommitdiffstats
path: root/maven/make-copy-jars.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-12-25 08:57:06 +0100
committerSven Gothel <[email protected]>2012-12-25 08:57:06 +0100
commit1ddf7e0511e78257019ac98d92ceccc77e262bc5 (patch)
treeebeb5f0be1aff4ea9fca564518610f28ad66edae /maven/make-copy-jars.sh
parentf90c7e09b05db0b84e341f1ca077c2e41b670884 (diff)
Deploy source files (zip -> jar), if available.
Diffstat (limited to 'maven/make-copy-jars.sh')
-rwxr-xr-xmaven/make-copy-jars.sh22
1 files changed, 15 insertions, 7 deletions
diff --git a/maven/make-copy-jars.sh b/maven/make-copy-jars.sh
index d4b0c27..baf7a89 100755
--- a/maven/make-copy-jars.sh
+++ b/maven/make-copy-jars.sh
@@ -54,6 +54,10 @@ do
DUMMY=`echo "${PROJECT_LINE}" | awk -F: '{print $3}'` || exit 1
DUMMY=`echo "${DUMMY}" | tr -d ' '` || exit 1
+ # Determine the source zip file, may be dummy-src
+ SRC_ZIP=`echo "${PROJECT_LINE}" | awk -F: '{print $4}'` || exit 1
+ SRC_ZIP=`echo "${SRC_ZIP}" | tr -d ' '` || exit 1
+
# Copy all native jars, if necessary
if [ "${NATIVES}" = "natives" ]
then
@@ -69,21 +73,25 @@ do
if [ "${DUMMY}" = "dummy-jar" ]
then
SOURCE="empty.jar"
- TARGET="output/${NAME}/${VERSION}/${NAME}.jar"
- copy "${SOURCE}" "${TARGET}"
else
# Copy main jar
SOURCE="${INPUT}/jar/${NAME}.jar"
- TARGET="output/${NAME}/${VERSION}/${NAME}.jar"
- copy "${SOURCE}" "${TARGET}"
fi
+ TARGET="output/${NAME}/${VERSION}/${NAME}.jar"
+ copy "${SOURCE}" "${TARGET}"
- # Copy dummy jars to 'sources' and 'javadoc' jars, as we
- # don't publish real versions of these yet.
- SOURCE="empty.jar"
+ # Copy dummy jars, if necessary
+ if [ "${SRC_ZIP}" = "dummy-src" ]
+ then
+ SOURCE="empty.jar"
+ else
+ SOURCE="${INPUT}/${SRC_ZIP}"
+ fi
TARGET="output/${NAME}/${VERSION}/${NAME}-${VERSION}-sources.jar"
copy "${SOURCE}" "${TARGET}"
+ # Copy dummy jars to 'javadoc' jars, as we
+ # don't publish real versions of these yet.
SOURCE="empty.jar"
TARGET="output/${NAME}/${VERSION}/${NAME}-${VERSION}-javadoc.jar"
copy "${SOURCE}" "${TARGET}"