Changeset View
Changeset View
Standalone View
Standalone View
share/mk/suite.test.mk
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | .endfor | ||||
@cd ${.CURDIR} && ${MAKE} install \ | @cd ${.CURDIR} && ${MAKE} install \ | ||||
DESTDIR=${DESTDIR} | DESTDIR=${DESTDIR} | ||||
# NOTE: this is intentional to ensure that "make check" can be run multiple | # NOTE: this is intentional to ensure that "make check" can be run multiple | ||||
# times. "aftercheck" won't be run if "make check" fails, is interrupted, | # times. "aftercheck" won't be run if "make check" fails, is interrupted, | ||||
# etc. | # etc. | ||||
aftercheck: | aftercheck: | ||||
@cd ${.CURDIR} && ${MAKE} clean | @cd ${.CURDIR} && ${MAKE} clean | ||||
@chflags -R 0 "${DESTDIR}" | |||||
emaste: How many files do we expect in `${DESTDIR}`?
Other chflags uses do a `rm 2>/dev/null`… | |||||
ngieAuthorUnsubmitted Done Inline ActionsWhat @jtl said is correct. ${MAKE} clean effectively performs the rm -Rf dance. The second chflags -R 0/rm -Rf dance is to eliminate the remaining paths that were left behind, which with the stock mtree files is only 1 path: $ grep -r schg /etc/mtree/ /etc/mtree/BSD.var.dist: empty mode=0555 flags=schg I should be more explicit about that point in my commit message. ngie: What @jtl said is correct. `${MAKE} clean` effectively performs the rm -Rf dance. The second… | |||||
@rm -Rf "${DESTDIR}" | |||||
.endif | .endif |
How many files do we expect in ${DESTDIR}?
Other chflags uses do a rm 2>/dev/null; chflags -R; rm dance to avoid a slow recursive chflags. Perhaps not necessary here.