Replace my stale-lib cleanup with a better one. (less noisy)

Submitted by: ru
This commit is contained in:
Peter Wemm 2001-09-21 09:22:34 +00:00
parent 7a19c34992
commit ccf136a93f
7 changed files with 35 additions and 7 deletions

View File

@ -22,7 +22,11 @@ ${lib}: ${lib}.gz.uu
beforeinstall:
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}/aout
rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -19,7 +19,11 @@ beforeinstall:
${DESTDIR}/usr/libexec
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}/aout
rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -18,7 +18,11 @@ beforeinstall:
${DESTDIR}/usr/libexec
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}/aout
rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -32,7 +32,11 @@ beforeinstall:
@${ECHO} "libtermlib.so.2.1 -> libtermcap.so.2.1" ; \
cd ${DESTDIR}${LIBCOMPATDIR}/aout ; \
ln -sf libtermcap.so.2.1 libtermlib.so.2.1
rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -22,7 +22,11 @@ ${lib}: ${lib}.gz.uu
beforeinstall:
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}
rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -22,7 +22,11 @@ ${lib}: ${lib}.gz.uu
beforeinstall:
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}
rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.

View File

@ -22,7 +22,11 @@ ${lib}: ${lib}.gz.uu
beforeinstall:
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \
${DESTDIR}${LIBCOMPATDIR}
rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@}
.for lib in ${LIBS}
.if exists(${DESTDIR}${SHLIBDIR}/${lib})
rm -f ${DESTDIR}${SHLIBDIR}/${lib}
.endif
.endfor
# Get all the fruit, even though we don't set PROG.
# XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.