diff --git a/Makefile.inc1 b/Makefile.inc1 index ef63bfd5238..5cf431733f8 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1538,24 +1538,16 @@ distributeworld installworld stageworld: _installcheck_world .PHONY .endfor .if defined(NO_ROOT) .for dist in base ${EXTRA_DISTRIBUTIONS} +.for path suffix in "" .meta /usr/lib/debug .debug.meta @# For each file that exists in this dist, print the corresponding @# line from the METALOG. This relies on the fact that @# a line containing only the filename will sort immediately before @# the relevant mtree line. cd ${DESTDIR}/${DISTDIR}; \ - find ./${dist} | ${METALOG_SORT_CMD} -u ${METALOG} - | \ - awk 'BEGIN { print "#${MTREE_MAGIC}" } !/ type=/ { file = $$1 } / type=/ { if ($$1 == file) { sub(/^\.\/${dist}/, "."); print } }' > \ - ${DESTDIR}/${DISTDIR}/${dist}.meta + find ./${dist}${path} | ${METALOG_SORT_CMD} -u ${METALOG} - | \ + awk 'BEGIN { print "#${MTREE_MAGIC}" } !/ type=/ { file = $$1 } / type=/ { if ($$1 == file) { sub(/^\.\/${dist}/, "."); print } }' > \ + ${DESTDIR}/${DISTDIR}/${dist}${suffix} .endfor -.for dist in ${DEBUG_DISTRIBUTIONS} - @# For each file that exists in this dist, print the corresponding - @# line from the METALOG. This relies on the fact that - @# a line containing only the filename will sort immediately before - @# the relevant mtree line. - cd ${DESTDIR}/${DISTDIR}; \ - find ./${dist}/usr/lib/debug | ${METALOG_SORT_CMD} -u ${METALOG} - | \ - awk 'BEGIN { print "#${MTREE_MAGIC}" } !/ type=/ { file = $$1 } / type=/ { if ($$1 == file) { sub(/^\.\/${dist}/, "."); print } }' > \ - ${DESTDIR}/${DISTDIR}/${dist}.debug.meta .endfor .endif .endif # make(distributeworld)