summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjoerg <joerg>2009-05-17 23:44:53 +0000
committerjoerg <joerg>2009-05-17 23:44:53 +0000
commita773faad0231b0d682af5ca092573b379da52560 (patch)
tree10e413a145fdca2d1819a1bc159a8ce981f271f2 /mk
parentfb4c3d04aa02a6227cc79fcd81158aad77185727 (diff)
downloadpkgsrc-a773faad0231b0d682af5ca092573b379da52560.tar.gz
Sanity check that USE_DESTDIR is either yes or no after downgrading
USE_DESTDIR=full. This makes setting USE_DESTDIR=full on the command line an explicit error as side effect.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.prefs.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk
index 7c5002c80d1..d7467fc6145 100644
--- a/mk/bsd.prefs.mk
+++ b/mk/bsd.prefs.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prefs.mk,v 1.291 2009/05/09 14:59:08 joerg Exp $
+# $NetBSD: bsd.prefs.mk,v 1.292 2009/05/17 23:44:53 joerg Exp $
#
# This file includes the mk.conf file, which contains the user settings.
#
@@ -387,6 +387,9 @@ USE_DESTDIR:= yes
.endif
.if empty(PKG_DESTDIR_SUPPORT) || empty(USE_DESTDIR:M[Yy][Ee][Ss])
+. if empty(USE_DESTDIR:M[Nn][Oo])
+PKG_FAIL_REASON+= "USE_DESTDIR must be either \`\`yes'' or \`\`no''"
+. endif
_USE_DESTDIR= no
.elif ${PKG_DESTDIR_SUPPORT} == "user-destdir"
_USE_DESTDIR= user-destdir