When doing a shell "for" loop over a potentially-empty list, assign the list
to a shell variable and iterate over that. This is necessary for some POSIX shells.
This commit is contained in:
parent
8015e58333
commit
f1c9ecc81e
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile.image,v 1.11 2002/05/02 18:02:30 lukem Exp $
|
||||
# $NetBSD: Makefile.image,v 1.12 2002/05/02 18:32:45 bjh21 Exp $
|
||||
#
|
||||
# Makefile snippet to build a tree from the provided lists,
|
||||
# and make an ffs file system image from that tree
|
||||
@ -47,7 +47,8 @@ ${WORKBUILT}: ${IMAGEDEPENDS} ${WORKSPEC} ${PARSELISTDEP} ${LISTS}
|
||||
|
||||
${WORKSPEC}: ${MTREECONF} ${LISTS} ${PARSELISTDEP}
|
||||
-rm -f ${.TARGET} ${.TARGET}.tmp
|
||||
( for i in ${MTREECONF}; do \
|
||||
( mtreeconf="${MTREECONF}"; \
|
||||
for i in $${mtreeconf}; do \
|
||||
cat $$i ; \
|
||||
echo "/unset all" ; \
|
||||
done ) >> ${.TARGET}.tmp
|
||||
|
Loading…
Reference in New Issue
Block a user