b929fb436e
- fix predefined $TEXMF problem - bump PORTREVISION
33 lines
551 B
Bash
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
|