#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 2003/02/18 16:04:50 sturm Exp $
#
# tetex base de-installation

set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
TEXMFCNF=$PREFIX/share/texmf/web2c/texmf.cnf

if [ -f $TEXMFCNF ]; then
    cp $TEXMFCNF $TEXMFCNF.old
    if [ -f $TEXMFCNF.dist ]; then
        rm $TEXMFCNF.dist
    fi
    echo
    echo "+---------------"
    echo "| Your $TEXMFCNF file has been"
    echo "| preserved as $TEXMFCNF.old."
    echo "| To completely deinstall the $1 package you need to"
    echo "| perform this step as root:"
    echo "|"
    echo "|           rm -f $TEXMFCNF.old"
    echo "|"
    echo "| Do not do this if you plan on re-installing $1"
    echo "| at some future time."
    echo "+---------------"
    echo
fi

exit 0
