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"