svn commit: r352834 - stable/12/share/mk
Dimitry Andric
dim at FreeBSD.org
Sat Sep 28 08:54:33 UTC 2019
Author: dim
Date: Sat Sep 28 08:54:32 2019
New Revision: 352834
URL: https://svnweb.freebsd.org/changeset/base/352834
Log:
MFC r352699:
In suite.test.mk, test if ${DESTDIR} exists before attempting to run
chflags -R on it, otherwise the command will error out. (Note that
adding -f to the chflags invocation does not help, unlike with rm.)
Modified:
stable/12/share/mk/suite.test.mk
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/share/mk/suite.test.mk
==============================================================================
--- stable/12/share/mk/suite.test.mk Sat Sep 28 07:33:08 2019 (r352833)
+++ stable/12/share/mk/suite.test.mk Sat Sep 28 08:54:32 2019 (r352834)
@@ -120,7 +120,7 @@ beforecheck:
# etc.
aftercheck:
@cd ${.CURDIR} && ${MAKE} clean
- @chflags -R 0 "${DESTDIR}"
+ @test ! -e ${DESTDIR} || chflags -R 0 "${DESTDIR}"
@rm -Rf "${DESTDIR}"
.endif
More information about the svn-src-all
mailing list