Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 1,302 Lines • ▼ Show 20 Lines | distributeworld installworld stageworld: _installcheck_world .PHONY | ||||
progs=$$(for prog in ${ITOOLS}; do \ | progs=$$(for prog in ${ITOOLS}; do \ | ||||
if progpath=`which $$prog`; then \ | if progpath=`which $$prog`; then \ | ||||
echo $$progpath; \ | echo $$progpath; \ | ||||
else \ | else \ | ||||
echo "Required tool $$prog not found in PATH." >&2; \ | echo "Required tool $$prog not found in PATH." >&2; \ | ||||
exit 1; \ | exit 1; \ | ||||
fi; \ | fi; \ | ||||
done); \ | done); \ | ||||
libs=$$(ldd -f "%o %p\n" -f "%o %p\n" $$progs 2>/dev/null | sort -u | \ | libs=$$((ldd -f "%o %p\n" -f "%o %p\n" $$progs 2>/dev/null || true) | sort -u | \ | ||||
while read line; do \ | while read line; do \ | ||||
set -- $$line; \ | set -- $$line; \ | ||||
if [ "$$2 $$3" != "not found" ]; then \ | if [ "$$2 $$3" != "not found" ]; then \ | ||||
echo $$2; \ | echo $$2; \ | ||||
else \ | else \ | ||||
echo "Required library $$1 not found." >&2; \ | echo "Required library $$1 not found." >&2; \ | ||||
exit 1; \ | exit 1; \ | ||||
fi; \ | fi; \ | ||||
▲ Show 20 Lines • Show All 1,659 Lines • ▼ Show 20 Lines | # Remove catpages without corresponding manpages. | ||||
@exec 3<&0; \ | @exec 3<&0; \ | ||||
find ${DESTDIR}/usr/share/man/cat* ! -type d 2>/dev/null | \ | find ${DESTDIR}/usr/share/man/cat* ! -type d 2>/dev/null | \ | ||||
sed -ep -e's:${DESTDIR}/usr/share/man/cat:${DESTDIR}/usr/share/man/man:' | \ | sed -ep -e's:${DESTDIR}/usr/share/man/cat:${DESTDIR}/usr/share/man/man:' | \ | ||||
while read catpage; do \ | while read catpage; do \ | ||||
read manpage; \ | read manpage; \ | ||||
if [ ! -e "$${manpage}" ]; then \ | if [ ! -e "$${manpage}" ]; then \ | ||||
rm ${RM_I} $${catpage} <&3; \ | rm ${RM_I} $${catpage} <&3; \ | ||||
fi; \ | fi; \ | ||||
done | done || true | ||||
@echo ">>> Old files removed" | @echo ">>> Old files removed" | ||||
check-old-files: .PHONY | check-old-files: .PHONY | ||||
@echo ">>> Checking for old files" | @echo ">>> Checking for old files" | ||||
@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" | xargs -n1 | \ | -V OLD_FILES -V "OLD_FILES:Musr/share/*.gz:R" | xargs -n1 | \ | ||||
while read file; do \ | while read file; do \ | ||||
▲ Show 20 Lines • Show All 329 Lines • Show Last 20 Lines |