Source-Changes-HG archive

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

[src/trunk]: src/distrib/sets Add support for following keywords in sets list...



details:   https://anonhg.NetBSD.org/src/rev/7c3469ab75c0
branches:  trunk
changeset: 580603:7c3469ab75c0
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun May 01 07:06:09 2005 +0000

description:
Add support for following keywords in sets lists, based on mk.conf(5) vars:
        use_inet6               ${USE_INET6} != no
        use_kerberos            ${USE_KERBEROS} != no
        use_yp                  ${USE_YP} != no

diffstat:

 distrib/sets/sets.subr |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (49 lines):

diff -r cbb8ebbd7c3d -r 7c3469ab75c0 distrib/sets/sets.subr
--- a/distrib/sets/sets.subr    Sun May 01 06:51:04 2005 +0000
+++ b/distrib/sets/sets.subr    Sun May 01 07:06:09 2005 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: sets.subr,v 1.40 2005/03/22 09:28:24 tron Exp $
+#      $NetBSD: sets.subr,v 1.41 2005/05/01 07:06:09 lukem Exp $
 #
 
 #
@@ -57,6 +57,9 @@
        MKUUCP          \
        MKX11           \
        MKYP            \
+       USE_INET6       \
+       USE_KERBEROS    \
+       USE_YP          \
 "
 
 oIFS=$IFS
@@ -124,7 +127,7 @@
 # In each file, a record consists of a path and a System Package name,
 # separated by whitespace. E.g.,
 #
-#      # $NetBSD: sets.subr,v 1.40 2005/03/22 09:28:24 tron Exp $
+#      # $NetBSD: sets.subr,v 1.41 2005/05/01 07:06:09 lukem Exp $
 #      .                       base-sys-root   [keyword[,...]]
 #      ./altroot               base-sys-root
 #      ./bin                   base-sys-root
@@ -174,6 +177,10 @@
 #      uucp                    ${MKUUCP} != no
 #      yp                      ${MKYP} != no
 #
+#      use_inet6               ${USE_INET6} != no
+#      use_kerberos            ${USE_KERBEROS} != no
+#      use_yp                  ${USE_YP} != no
+#
 #      .cat                    if ${MKMANZ} != "no" && ${MKCATPAGES} != "no"
 #                                automatically append ".gz" to the filename
 #
@@ -191,7 +198,8 @@
                                split("'"${MKVARS}"'", needvars)
                                for (vi in needvars) {
                                        nv = needvars[vi]
-                                       kw = tolower(substr(nv, 3))
+                                       kw = tolower(nv)
+                                       sub(/^mk/, "", kw)
                                        if (ENVIRON[nv] != "no")
                                                wanted[kw] = 1 
                                }



Home | Main Index | Thread Index | Old Index