summaryrefslogtreecommitdiff
path: root/jh-mvn-install.sh
blob: 6f1fd19e5c62be5e97f1ea411f619bd96d67e336 (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"