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. Reported by: des Reviewed by: emaste (earlier version) Approved by: bapt MFC after: 3 days
This commit is contained in:
parent
8f011d4075
commit
e45e2255e8
@ -1722,6 +1722,13 @@ delete-old-libs:
|
|||||||
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
|
||||||
@echo ">>> Old libraries removed"
|
@echo ">>> Old libraries removed"
|
||||||
|
|
||||||
@ -1733,6 +1740,11 @@ check-old-libs:
|
|||||||
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
|
||||||
|
|
||||||
delete-old-dirs:
|
delete-old-dirs:
|
||||||
|
Loading…
Reference in New Issue
Block a user