summaryrefslogtreecommitdiff
path: root/jh-mvn-install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'jh-mvn-install.sh')
-rw-r--r--jh-mvn-install.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/jh-mvn-install.sh b/jh-mvn-install.sh
new file mode 100644
index 0000000..84b0fc4
--- /dev/null
+++ b/jh-mvn-install.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+. /usr/bin/jh
+
+if [[ $# != 5 ]]; then
+ usage
+ exit 1
+fi
+
+base="`$jh_cmd mvn-basename $1 $2 $3"
+jarfile=$3
+pomfile=$4
+
+dir="${base%/*}"
+install -d "${DESTDIR}${dir}"
+install -m 644 "$jarfile" "${DESTDIR}${base}.jar"
+install -m 644 "$pomfile" "${DESTDIR}${base}.pom"