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

if [[ $# != 5 ]]; then
	jh-help $0 >>/dev/stderr
	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"