pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Hey Johnny, I thought you could still write code th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b5a129e990d9
branches:  trunk
changeset: 532695:b5a129e990d9
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Aug 29 15:59:52 2007 +0000

description:
Hey Johnny, I thought you could still write code that also works with
Solaris' /bin/sh.

diffstat:

 mk/bsd.options.mk |  18 +++++++-----------
 1 files changed, 7 insertions(+), 11 deletions(-)

diffs (39 lines):

diff -r b0c4ead9cd5d -r b5a129e990d9 mk/bsd.options.mk
--- a/mk/bsd.options.mk Wed Aug 29 15:57:47 2007 +0000
+++ b/mk/bsd.options.mk Wed Aug 29 15:59:52 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.options.mk,v 1.61 2007/08/14 19:03:25 jlam Exp $
+# $NetBSD: bsd.options.mk,v 1.62 2007/08/29 15:59:52 rillig Exp $
 #
 # This Makefile fragment provides boilerplate code for standard naming
 # conventions for handling per-package build options.
@@ -386,11 +386,9 @@
        @${ECHO} ""
        @${ECHO} "You can select which build options to use by setting PKG_DEFAULT_OPTIONS"
        @${ECHO} "or "${PKG_OPTIONS_VAR:Q}"."
-       @set -- dummy ${PKG_OPTIONS_DEPRECATED_WARNINGS}; \
-       if ${TEST} $$# -gt 1; then ${ECHO}; fi; \
-       for l; \
-       do \
-               if ${TEST} "$$l" = "dummy"; then continue; fi; \
+       @set args ${PKG_OPTIONS_DEPRECATED_WARNINGS}; shift; \
+       [ $$# -eq 0 ] || ${ECHO}; \
+       for l in "$$@"; do \
                ${ECHO} "$$l"; \
        done
 
@@ -418,11 +416,9 @@
 .    else
        @${ECHO} "      ${PKG_OPTIONS_VAR} = "${${PKG_OPTIONS_VAR}:Q}
 .    endif
-       @set -- dummy ${PKG_OPTIONS_DEPRECATED_WARNINGS}; \
-       if ${TEST} $$# -gt 1; then ${ECHO}; fi; \
-       for l; \
-       do \
-               if ${TEST} "$$l" = "dummy"; then continue; fi; \
+       @set args ${PKG_OPTIONS_DEPRECATED_WARNINGS}; shift; \
+       [ $$# -eq 0 ] || ${ECHO}; \
+       for l in "$$@"; do \
                ${ECHO} "$$l"; \
        done
        @${ECHO} ""



Home | Main Index | Thread Index | Old Index