freebsd-ports/print/xdvik/files/pkg-install.in
Hiroki Sato b929fb436e - teTeX-3.0 support
- fix predefined $TEXMF problem
- bump PORTREVISION
2005-02-06 13:55:24 +00:00

33 lines
551 B
Bash

#!/bin/sh
# $FreeBSD$
PAPERSIZE=%%PAPERSIZE%%
XDVIDIR=%%XDVIDIR%%
XDVICONFDIR=%%XDVICONFDIR%%
MKTEXLSR=%%MKTEXLSR%%
TEXCONFIGBIN=%%TEXCONFIGBIN%%
PATH=${PATH}:%%LOCALBASE%%/bin
case $2 in
POST-INSTALL)
${MKTEXLSR}
case ${PAPERSIZE} in
letter)
${TEXCONFIGBIN} xdvi paper us
;;
*)
${TEXCONFIGBIN} xdvi paper a4
;;
esac
${MKTEXLSR}
echo "======"
echo "NOTICE: Before upgrading, you may want to make " \
"a backup of the following file(s):"
echo " ${XDVICONFDIR}/XDvi"
echo "======"
;;
DEINSTALL)
# do nothing
${MKTEXLSR}
;;
esac