diff options
author | rillig <rillig@pkgsrc.org> | 2005-05-20 22:40:36 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-05-20 22:40:36 +0000 |
commit | 50085b3e47124dc45891f66949940995d43053b8 (patch) | |
tree | c8cafdf7dfd1c5fda957a297f76dad0c03c458bd /mk/wrapper | |
parent | 6c840b2f59685c158e3a273ebdeb732d3100cef2 (diff) | |
download | pkgsrc-50085b3e47124dc45891f66949940995d43053b8.tar.gz |
Made sure the :sh operator does not result in an empty string. Rewrote the
variable substitution for the find(1) command to be more readable.
Diffstat (limited to 'mk/wrapper')
-rw-r--r-- | mk/wrapper/bsd.wrapper.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk index fdcc0ffb89c..925ee210ddf 100644 --- a/mk/wrapper/bsd.wrapper.mk +++ b/mk/wrapper/bsd.wrapper.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.wrapper.mk,v 1.31 2005/05/20 21:36:05 jlam Exp $ +# $NetBSD: bsd.wrapper.mk,v 1.32 2005/05/20 22:40:36 rillig Exp $ # # Copyright (c) 2004 The NetBSD Foundation, Inc. # All rights reserved. @@ -696,10 +696,14 @@ _UNWRAP_PATTERNS+= *-config _UNWRAP_PATTERNS+= *Conf.sh _UNWRAP_PATTERNS+= *.pc _UNWRAP_PATTERNS_FIND_cmd= \ - cd ${WRKSRC} && ${FIND} . \( ${_UNWRAP_PATTERNS:S/$/!/:S/^/-o -name !/:S/!/"/g:S/-o//1} \) -print | ${SED} -e 's|^\./||' | ${SORT} -u + cd ${WRKSRC} && \ + ${ECHO} "__dummy-entry__" && \ + ${FIND} . \( ${_UNWRAP_PATTERNS:C/.*/-o -name "&"/g:S/-o//1} \) -print \ + | ${SED} -e 's|^\./||' \ + | ${SORT} -u UNWRAP_FILES?= # empty _UNWRAP_FILES= ${UNWRAP_FILES} \ - ${_UNWRAP_PATTERNS_FIND_cmd:sh} + ${_UNWRAP_PATTERNS_FIND_cmd:sh:N__dummy-entry__} _UNWRAP_SED?= # empty SUBST_CLASSES+= unwrap |