summaryrefslogtreecommitdiff
path: root/jh-mvn-install.sh
blob: 2be9cce6f30a1c81da09fec3b1538024246caa3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
. /usr/bin/jh

if [[ $# != 5 ]]; then
	usage
	exit 1
fi

base="`$jh_cmd mvn-basename $1 $2 $3"
jarfile=$4
pomfile=$5

dir="${base%/*}"
install -d "${DESTDIR}${dir}"
install -m 644 "$jarfile" "${DESTDIR}${base}.jar"
install -m 644 "$pomfile" "${DESTDIR}${base}.pom"