summaryrefslogtreecommitdiff
path: root/jh-mvn-install.sh
blob: 84b0fc4c4465e312e43b0d03f57ce8b311ad6cb7 (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=$3
pomfile=$4

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