freebsd-ports/print/xdvi/pkg-deinstall
Hiroki Sato 5ea01e4a24 - Fix a bug not to remove the font directories during the deinstall.
- Fix pathnames:
	s,$prefix/MakeTeXPK,$prefix/bin/MakeTeXPK,
	s,$prefix/lib/texmf/fonts/pk,${localbase}/share/texmf/fonts/pk,
- Remove pre-install to detect teTeX (CONFLICTS is enough).
- Make portlint(1) happy.

Approved by:	portmgr(marcus)
2005-03-25 06:11:28 +00:00

27 lines
468 B
Bash

#!/bin/sh
prefix=%%PREFIX%%
if [ "$2" != "DEINSTALL" ]; then
exit 0
fi
cat << END
Installing xdvi will remove $prefix/bin/MakeTeXPK. This file may be used by
dvips or other programs. If this is the case, you must make a backup of
this file now.
END
if [ -z ${PACKAGE_BUILDING} ]; then
echo -n "do you want to deinstall the package ? [y] "
read answ; if [ "$answ" = "" ]; then answ=y; fi
case $answ in
y*|Y*) break;;
*) exit 1;;
esac
fi
exit 0