svn commit: r322581 - head/tools/build/mk
Ed Maste
emaste at FreeBSD.org
Wed Aug 16 17:22:43 UTC 2017
Author: emaste
Date: Wed Aug 16 17:22:42 2017
New Revision: 322581
URL: https://svnweb.freebsd.org/changeset/base/322581
Log:
remove debug files in delete-old* when WITHOUT_DEBUG_FILES
Reported by: brd
Reviewed by: bdrewery, brd
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D12044
Modified:
head/tools/build/mk/OptionalObsoleteFiles.inc
Modified: head/tools/build/mk/OptionalObsoleteFiles.inc
==============================================================================
--- head/tools/build/mk/OptionalObsoleteFiles.inc Wed Aug 16 16:51:55 2017 (r322580)
+++ head/tools/build/mk/OptionalObsoleteFiles.inc Wed Aug 16 17:22:42 2017 (r322581)
@@ -1557,6 +1557,22 @@ OLD_FILES+=usr/bin/g++
OLD_FILES+=usr/libexec/cc1plus
.endif
+.if ${MK_DEBUG_FILES} == no
+.if exists(${DESTDIR}/usr/lib/debug)
+DEBUG_DIRS!=find ${DESTDIR}/usr/lib/debug -mindepth 1 \
+ -type d \! -path "${DESTDIR}/usr/lib/debug/boot/*" \
+ | sed -e 's,^${DESTDIR}/,,'; echo
+DEBUG_FILES!=find ${DESTDIR}/usr/lib/debug \
+ \! -type d \! -path "${DESTDIR}/usr/lib/debug/boot/*" \! -name "lib*.so*" \
+ | sed -e 's,^${DESTDIR}/,,'; echo
+DEBUG_LIBS!=find ${DESTDIR}/usr/lib/debug \! -type d -name "lib*.so*" \
+ | sed -e 's,^${DESTDIR}/,,'; echo
+OLD_DIRS+=${DEBUG_DIRS}
+OLD_FILES+=${DEBUG_FILES}
+OLD_LIBS+=${DEBUG_LIBS}
+.endif
+.endif
+
.if ${MK_DIALOG} == no
OLD_FILES+=usr/bin/dialog
OLD_FILES+=usr/bin/dpv
More information about the svn-src-all
mailing list