diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2015-10-16 04:07:27 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2015-10-16 04:07:27 +0000 |
commit | fb91ce0f235cb82bde4703ee6865d80ff9bee816 (patch) | |
tree | 9a1f134c4b469de78c670d7d96f96d01fac29a9e /Makefile.inc1 | |
parent | fb9846240a79d4b543da5de2f53d6a00ca0716dc (diff) | |
download | FreeBSD-src-fb91ce0f235cb82bde4703ee6865d80ff9bee816.zip FreeBSD-src-fb91ce0f235cb82bde4703ee6865d80ff9bee816.tar.gz |
Fix delete-old and check-old-files not removing old debug symbols.
This was handled for libraries in r256842 but for some reason was missed
for files (bsd.prog.mk).
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Relnotes: yes
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 32be188..53c407f 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1996,6 +1996,13 @@ delete-old-files: 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 # Remove catpages without corresponding manpages. @exec 3<&0; \ @@ -2018,6 +2025,11 @@ check-old-files: 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 # Check for catpages without corresponding manpages. @find ${DESTDIR}/usr/share/man/cat* ! -type d | \ |