1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/print/dvips/pkg-deinstall
Steve Price 21516e50fb Deinstall without interaction while package building and don't display
the deinstall message twice, one for DEINTALL and one for POST-DEINSTALL.
1999-05-24 02:25:48 +00:00

29 lines
472 B
Bash

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