pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk Sanity check that USE_DESTDIR is either yes or no a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a3f34ca0b48d
branches:  trunk
changeset: 393176:a3f34ca0b48d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun May 17 23:44:53 2009 +0000

description:
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:

 mk/bsd.prefs.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 68d1785f86ff -r a3f34ca0b48d mk/bsd.prefs.mk
--- a/mk/bsd.prefs.mk   Sun May 17 23:44:48 2009 +0000
+++ b/mk/bsd.prefs.mk   Sun May 17 23:44:53 2009 +0000
@@ -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 @@
 .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



Home | Main Index | Thread Index | Old Index