aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-05-24 02:25:48 +0000
committerSteve Price <steve@FreeBSD.org>1999-05-24 02:25:48 +0000
commit21516e50fb1f6a7a004f01fbb6a8566be60b1338 (patch)
treee6d73b90dabc26b6862158d3402929a8f9e64e58 /print
parent2ed596d2e6f4fe0a21870148a186e3d2918a0371 (diff)
downloadports-21516e50fb1f6a7a004f01fbb6a8566be60b1338.tar.gz
ports-21516e50fb1f6a7a004f01fbb6a8566be60b1338.zip
Notes
Diffstat (limited to 'print')
-rw-r--r--print/dvips/pkg-deinstall13
1 files changed, 10 insertions, 3 deletions
diff --git a/print/dvips/pkg-deinstall b/print/dvips/pkg-deinstall
index 290b365ea873..93a0d61cad85 100644
--- a/print/dvips/pkg-deinstall
+++ b/print/dvips/pkg-deinstall
@@ -1,5 +1,9 @@
#!/bin/sh
+if [ "$2" = "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
prefix=/usr/local
cat << END
@@ -10,12 +14,15 @@ this file now.
END
-echo -n "do you want to deinstall the package ? [y] "
-read answ; if [ "$answ" = "" ]; then answ=y; fi
+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
-