Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 3,202 Lines • ▼ Show 20 Lines | |||||
RM_I=-v | RM_I=-v | ||||
.endif | .endif | ||||
list-old-files: .PHONY | list-old-files: .PHONY | ||||
@cd ${.CURDIR}; \ | @cd ${.CURDIR}; \ | ||||
${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \ | ${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \ | ||||
-V OLD_FILES -V "OLD_FILES:Musr/share/*.gz:R" \ | -V OLD_FILES -V "OLD_FILES:Musr/share/*.gz:R" \ | ||||
-V "OLD_FILES:Mlib/*.so.*:S,^lib,usr/lib32," \ | -V "OLD_FILES:Mlib/*.so.*:S,^lib,usr/lib32," \ | ||||
-V "OLD_FILES:Musr/lib/*:S,^usr/lib,usr/lib32," | xargs -n1 | sort | -V "OLD_FILES:Musr/lib/*:S,^usr/lib,usr/lib32," | \ | ||||
sed -E 's/[[:space:]]+/\n/g' | sort | |||||
delete-old-files: .PHONY | delete-old-files: .PHONY | ||||
@echo ">>> Removing old files (only deletes safe to delete libs)" | @echo ">>> Removing old files (only deletes safe to delete libs)" | ||||
# Ask for every old file if the user really wants to remove it. | # Ask for every old file if the user really wants to remove it. | ||||
# It's annoying, but better safe than sorry. | # It's annoying, but better safe than sorry. | ||||
# NB: We cannot pass the list of OLD_FILES as a parameter because the | # NB: We cannot pass the list of OLD_FILES as a parameter because the | ||||
# argument list will get too long. Using .for/.endfor make "loops" will make | # argument list will get too long. Using .for/.endfor make "loops" will make | ||||
# the Makefile parser segfault. | # the Makefile parser segfault. | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | # Check for catpages without corresponding manpages. | ||||
done | sort | done | sort | ||||
list-old-libs: .PHONY | list-old-libs: .PHONY | ||||
@cd ${.CURDIR}; \ | @cd ${.CURDIR}; \ | ||||
${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \ | ${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \ | ||||
-V OLD_LIBS -V MOVED_LIBS -V "OLD_LIBS:Mlib/*:S,^lib,usr/lib32," \ | -V OLD_LIBS -V MOVED_LIBS -V "OLD_LIBS:Mlib/*:S,^lib,usr/lib32," \ | ||||
-V "OLD_LIBS:Musr/lib/*:S,^usr/lib,usr/lib32," \ | -V "OLD_LIBS:Musr/lib/*:S,^usr/lib,usr/lib32," \ | ||||
-V "OLD_LIBS:Mlib/casper/*:S,^lib/casper,usr/lib32," | \ | -V "OLD_LIBS:Mlib/casper/*:S,^lib/casper,usr/lib32," | \ | ||||
xargs -n1 | sort | sed -E 's/[[:space:]]+/\n/g' | sort | ||||
delete-old-libs: .PHONY | delete-old-libs: .PHONY | ||||
@echo ">>> Removing old libraries" | @echo ">>> Removing old libraries" | ||||
@echo "${OLD_LIBS_MESSAGE}" | fmt | @echo "${OLD_LIBS_MESSAGE}" | fmt | ||||
@exec 3<&0; \ | @exec 3<&0; \ | ||||
cd ${.CURDIR}; \ | cd ${.CURDIR}; \ | ||||
${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} list-old-libs | \ | ${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} list-old-libs | \ | ||||
while read file; do \ | while read file; do \ | ||||
Show All 24 Lines | for ext in debug symbols; do \ | ||||
echo "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}"; \ | echo "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}"; \ | ||||
fi; \ | fi; \ | ||||
done; \ | done; \ | ||||
done | done | ||||
list-old-dirs: .PHONY | list-old-dirs: .PHONY | ||||
@cd ${.CURDIR}; \ | @cd ${.CURDIR}; \ | ||||
${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \ | ${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} ${.TARGET} \ | ||||
-V OLD_DIRS | xargs -n1 | sort -r | -V OLD_DIRS | sed -E 's/[[:space:]]+/\n/g' | sort -r | ||||
delete-old-dirs: .PHONY | delete-old-dirs: .PHONY | ||||
@echo ">>> Removing old directories" | @echo ">>> Removing old directories" | ||||
@cd ${.CURDIR}; \ | @cd ${.CURDIR}; \ | ||||
${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} list-old-dirs | \ | ${MAKE} -f ${.CURDIR}/Makefile.inc1 ${.MAKEFLAGS} list-old-dirs | \ | ||||
while read dir; do \ | while read dir; do \ | ||||
if [ -d "${DESTDIR}/$${dir}" ]; then \ | if [ -d "${DESTDIR}/$${dir}" ]; then \ | ||||
rmdir -v "${DESTDIR}/$${dir}" || true; \ | rmdir -v "${DESTDIR}/$${dir}" || true; \ | ||||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |