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
This commit is contained in:
parent
476dfdc3bf
commit
651e270328
@ -1996,6 +1996,13 @@ delete-old-files:
|
|||||||
chflags noschg "${DESTDIR}/$${file}" 2>/dev/null || true; \
|
chflags noschg "${DESTDIR}/$${file}" 2>/dev/null || true; \
|
||||||
rm ${RM_I} "${DESTDIR}/$${file}" <&3; \
|
rm ${RM_I} "${DESTDIR}/$${file}" <&3; \
|
||||||
fi; \
|
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
|
done
|
||||||
# Remove catpages without corresponding manpages.
|
# Remove catpages without corresponding manpages.
|
||||||
@exec 3<&0; \
|
@exec 3<&0; \
|
||||||
@ -2018,6 +2025,11 @@ check-old-files:
|
|||||||
if [ -f "${DESTDIR}/$${file}" -o -L "${DESTDIR}/$${file}" ]; then \
|
if [ -f "${DESTDIR}/$${file}" -o -L "${DESTDIR}/$${file}" ]; then \
|
||||||
echo "${DESTDIR}/$${file}"; \
|
echo "${DESTDIR}/$${file}"; \
|
||||||
fi; \
|
fi; \
|
||||||
|
for ext in debug symbols; do \
|
||||||
|
if [ -f "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}" ]; then \
|
||||||
|
echo "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}"; \
|
||||||
|
fi; \
|
||||||
|
done; \
|
||||||
done
|
done
|
||||||
# Check for catpages without corresponding manpages.
|
# Check for catpages without corresponding manpages.
|
||||||
@find ${DESTDIR}/usr/share/man/cat* ! -type d | \
|
@find ${DESTDIR}/usr/share/man/cat* ! -type d | \
|
||||||
|
Loading…
Reference in New Issue
Block a user