aboutsummaryrefslogtreecommitdiff
path: root/print/xdvi
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1999-07-04 21:41:46 +0000
committerSteve Price <steve@FreeBSD.org>1999-07-04 21:41:46 +0000
commit681b68d020ad3c9e47fa1d8c2c1c15368cdfbcc0 (patch)
tree9737d3e471cecd66de141faa551d45fd3d81c6b0 /print/xdvi
parentdb000ac3c966bd2fa95b11bf2a4b6b6a54ebbe69 (diff)
downloadports-681b68d020ad3c9e47fa1d8c2c1c15368cdfbcc0.tar.gz
ports-681b68d020ad3c9e47fa1d8c2c1c15368cdfbcc0.zip
Don't require interaction on DEINSTALL while PACKAGE_BUILDING.
Notes
Notes: svn path=/head/; revision=20051
Diffstat (limited to 'print/xdvi')
-rw-r--r--print/xdvi/pkg-deinstall15
1 files changed, 8 insertions, 7 deletions
diff --git a/print/xdvi/pkg-deinstall b/print/xdvi/pkg-deinstall
index 6a3fcb2b7885..2149add34d40 100644
--- a/print/xdvi/pkg-deinstall
+++ b/print/xdvi/pkg-deinstall
@@ -10,12 +10,13 @@ this file now.
END
-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
+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
-