diff options
author | rillig <rillig@pkgsrc.org> | 2007-08-29 15:59:52 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-08-29 15:59:52 +0000 |
commit | a57e707ad8e7911fcd713cd55a229f32416c08c0 (patch) | |
tree | 80e12cf29f91bf0b3bf44b75eeca0a9e224c94ce /mk | |
parent | f6f4a3f8bc1f5378ed884b507a8e872cd2759658 (diff) | |
download | pkgsrc-a57e707ad8e7911fcd713cd55a229f32416c08c0.tar.gz |
Hey Johnny, I thought you could still write code that also works with
Solaris' /bin/sh.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.options.mk | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/mk/bsd.options.mk b/mk/bsd.options.mk index a5856c077aa..c5c5788cd93 100644 --- a/mk/bsd.options.mk +++ b/mk/bsd.options.mk @@ -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 @@ show-options: @${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 @@ supported-options-message: . 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} "" |