1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/mail/exmh2/scripts/install
2014-05-30 05:56:15 +00:00

50 lines
1.4 KiB
Bash

#! /bin/sh
#
# $FreeBSD$
#
VERSION="`sed -ne 's/^set vers \(.*\)/\1/p' ${WRKSRC}/exmh.install`"
# Rename while installing..
for i in exmh
do
echo "install -c $i.l ${PREFIX}/man/man1/$i.1"
install -c $i.l ${PREFIX}/man/man1/$i.1
done
BINS="exmh-async exmh-bg exmh-strip exmh ftp.expect inc.expect"
echo "install -c ${BINS} ${PREFIX}/bin"
install -c ${BINS} ${PREFIX}/bin
if [ ! -d ${PREFIX}/lib/exmh-${VERSION} ]
then
echo "mkdir ${PREFIX}/lib/exmh-${VERSION}"
mkdir ${PREFIX}/lib/exmh-${VERSION}
fi
LIBFILES='lib/*.tcl lib/*.bitmap lib/*.gif lib/*.ppm lib/help.* lib/tclIndex lib/app-defaults lib/app-defaults-* lib/*.mask lib/*.exp lib/mime.types lib/*.au lib/PgpDecryptExpect'
echo "install -c ${LIBFILES} ${PREFIX}/lib/exmh-${VERSION}"
install -c ${LIBFILES} ${PREFIX}/lib/exmh-${VERSION}
if [ ! -d ${PREFIX}/lib/exmh-${VERSION}/html ]
then
echo "mkdir ${PREFIX}/lib/exmh-${VERSION}/html"
mkdir ${PREFIX}/lib/exmh-${VERSION}/html
fi
echo "install -c lib/html/* lib/html/*.gif ${PREFIX}/lib/exmh-${VERSION}/html"
install -c lib/html/*.html lib/html/*.gif ${PREFIX}/lib/exmh-${VERSION}/html
if [ ! -d ${PREFIX}/lib/exmh-${VERSION}/bitmaps ]
then
echo "mkdir ${PREFIX}/lib/exmh-${VERSION}/bitmaps"
mkdir ${PREFIX}/lib/exmh-${VERSION}/bitmaps
fi
echo "install -c lib/bitmaps/bitmaps.defaults lib/bitmaps/*.xbm ${PREFIX}/lib/exmh-${VERSION}/bitmaps"
install -c lib/bitmaps/bitmaps.defaults lib/bitmaps/*.xbm ${PREFIX}/lib/exmh-${VERSION}/bitmaps