Restore previous behaviour of aborting delete-old* if rm failed.

Pointed out by:	netchild
MFC after:	3 weeks
This commit is contained in:
Dag-Erling Smørgrav 2007-05-14 14:41:52 +00:00
parent 82a35b739a
commit ca224410bc

View File

@ -1140,7 +1140,7 @@ delete-old-files:
@(cd ${DESTDIR}/ && for file in ${OLD_FILES}; do \
if [ -f "./$${file}" -o -L "./$${file}" ]; then \
chflags noschg "./$${file}" 2>/dev/null || true; \
rm ${RM_I} "${DESTDIR}/$${file}" || true; \
rm ${RM_I} "${DESTDIR}/$${file}"; \
fi; \
done)
# Remove catpages without corresponding manpages.
@ -1178,7 +1178,7 @@ delete-old-libs:
@(cd ${DESTDIR}/ && for file in ${OLD_LIBS}; do \
if [ -f "./$${file}" -o -L "./$${file}" ]; then \
chflags noschg "./$${file}" 2>/dev/null || true; \
rm ${RM_I} "${DESTDIR}/$${file}" || true; \
rm ${RM_I} "${DESTDIR}/$${file}"; \
fi; \
done)
@echo ">>> Old libraries removed"