From dea189c1b43d39e15c44ecf72465adf6e4d9ba8d Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 28 Dec 2003 21:20:02 +0000 Subject: Use "${LS}" instead of "${FILE_CMD}" to find out the target of softlink when (de)compressing manual pages. This fixes problems caused by the output format of NetBSD-current's and shouldn't hurt any other platform. --- mk/bsd.pkg.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index bbe6ee97847..6bb6507887c 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1329 2003/12/26 17:43:24 seb Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1330 2003/12/28 21:20:02 tron Exp $ # # This file is in the public domain. # @@ -2603,7 +2603,7 @@ real-su-install: ${MESSAGE} for manpage in $$newmanpages; do \ manpage=`${ECHO} $$manpage | ${SED} -e 's|\.gz$$||'`; \ if [ -h ${PREFIX}/$$manpage.gz ]; then \ - set - `${FILE_CMD} ${PREFIX}/$$manpage.gz | ${SED} -e 's|\.gz$$||'`; \ + set - `${LS} -l ${PREFIX}/$$manpage.gz | ${SED} -e 's|\.gz$$||'`; \ shift `expr $$# - 1`; \ ${RM} -f ${PREFIX}/$$manpage; \ ${LN} -s $${1} ${PREFIX}/$$manpage; \ @@ -2622,7 +2622,7 @@ real-su-install: ${MESSAGE} for manpage in $$newmanpages; do \ manpage=`${ECHO} $$manpage | ${SED} -e 's|\.gz$$||'`; \ if [ -h ${PREFIX}/$$manpage ]; then \ - set - `${FILE_CMD} ${PREFIX}/$$manpage`; \ + set - `${LS} -l ${PREFIX}/$$manpage`; \ shift `expr $$# - 1`; \ ${RM} -f ${PREFIX}/$$manpage.gz; \ ${LN} -s $${1}.gz ${PREFIX}/$$manpage.gz; \ -- cgit v1.2.3