svn commit: r314241 - head/tools/build/mk
Ngie Cooper
ngie at FreeBSD.org
Sat Feb 25 03:28:50 UTC 2017
Author: ngie
Date: Sat Feb 25 03:28:49 2017
New Revision: 314241
URL: https://svnweb.freebsd.org/changeset/base/314241
Log:
Fill in MK_RESCUE by finding paths in ${DESTDIR}/rescue and adding
them to OLD_FILES/OLD_DIRS, as necessary.
MFC after: 1 month
Sponsored by: Dell EMC Isilon
Modified:
head/tools/build/mk/OptionalObsoleteFiles.inc
Modified: head/tools/build/mk/OptionalObsoleteFiles.inc
==============================================================================
--- head/tools/build/mk/OptionalObsoleteFiles.inc Sat Feb 25 03:23:11 2017 (r314240)
+++ head/tools/build/mk/OptionalObsoleteFiles.inc Sat Feb 25 03:28:49 2017 (r314241)
@@ -7462,9 +7462,14 @@ OLD_FILES+=usr/share/man/man8/rshd.8.gz
OLD_FILES+=usr/share/man/man8/rwhod.8.gz
.endif
-#.if ${MK_RESCUE} == no
-# to be filled in or replaced with a special target
-#.endif
+.if ${MK_RESCUE} == no
+. if exists(${DESTDIR}${TESTSBASE})
+RESCUE_DIRS!=find ${DESTDIR}/rescue -type d | sed -e 's,^${DESTDIR}/,,'; echo
+OLD_DIRS+=${RESCUE_DIRS}
+RESCUE_FILES!=find ${DESTDIR}/rescue \! -type d | sed -e 's,^${DESTDIR}/,,'; echo
+OLD_FILES+=${RESCUE_FILES}
+. endif
+.endif
.if ${MK_ROUTED} == no
OLD_FILES+=rescue/routed
More information about the svn-src-head
mailing list