diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2013-10-24 11:35:50 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2013-10-24 11:35:50 +0000 |
commit | 0fb83d0f206d137ea574c6adc087d72fca2a513b (patch) | |
tree | 60f95e8949fa26d8d82db572403c963f419628cf /Makefile.inc1 | |
parent | c896ef2cccb7601faf5c79451228435a0717d08b (diff) | |
download | FreeBSD-src-0fb83d0f206d137ea574c6adc087d72fca2a513b.zip FreeBSD-src-0fb83d0f206d137ea574c6adc087d72fca2a513b.tar.gz |
MFC r256842:
Fix 'make delete-old-libs' and 'make check-libs' to delete .debug
files created by WITH_DEBUG_FILES. Also cleanup .symbols files from
the period between r244236 when .symbols were supported and r251512
when they were renamed to .debug.
Only propose to delete a .debug file if the corresponding library
itself was deleted already.
Approved by: bapt
Approved by: re (glebius)
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index ac10c2b..22dc111 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1722,6 +1722,13 @@ delete-old-libs: chflags noschg "${DESTDIR}/$${file}" 2>/dev/null || true; \ rm ${RM_I} "${DESTDIR}/$${file}" <&3; \ fi; \ + for ext in debug symbols; do \ + if ! [ -e "${DESTDIR}/$${file}" ] && [ -f \ + "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}" ]; then \ + rm ${RM_I} "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}" \ + <&3; \ + fi; \ + done; \ done @echo ">>> Old libraries removed" @@ -1733,6 +1740,11 @@ check-old-libs: if [ -f "${DESTDIR}/$${file}" -o -L "${DESTDIR}/$${file}" ]; then \ echo "${DESTDIR}/$${file}"; \ fi; \ + for ext in debug symbols; do \ + if [ -f "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}" ]; then \ + echo "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}"; \ + fi; \ + done; \ done delete-old-dirs: |