diff options
author | tron <tron> | 1998-11-19 22:59:03 +0000 |
---|---|---|
committer | tron <tron> | 1998-11-19 22:59:03 +0000 |
commit | 913e019d6deb3c0b46db068c19e654f8f03ac423 (patch) | |
tree | fb7c43bcdbeedc0e7440d0cba463217735cd77d6 /mk | |
parent | d5589c44f061463f1a3d37d98e6ef5b486dfcb05 (diff) | |
download | pkgsrc-913e019d6deb3c0b46db068c19e654f8f03ac423.tar.gz |
Handle decompression of symlinked manual pages.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index e730919541a..b47fd61db8e 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.194 1998/11/16 11:25:08 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.195 1998/11/19 22:59:03 tron Exp $ # # This file is in the public domain. # @@ -1148,7 +1148,14 @@ _PORT_USE: .USE ${ECHO_MSG} "===> Decompressing manual pages for ${PKGNAME}"; \ for manpage in $$newmanpages; do \ manpage=`${ECHO} $$manpage | ${SED} -e 's|\.gz$$||'`; \ - ${GUNZIP_CMD} ${PREFIX}/$$manpage.gz; \ + if [ -L ${PREFIX}/$$manpage.gz ]; then \ + set - `${FILE} ${PREFIX}/$$manpage.gz | ${SED} -e 's|\.gz$$||'`; \ + shift `expr $$# - 1`; \ + ${LN} -sf $${1} ${PREFIX}/$$manpage; \ + ${RM} ${PREFIX}/$$manpage.gz; \ + else \ + ${GUNZIP_CMD} ${PREFIX}/$$manpage.gz; \ + fi; \ if [ X"${PKG_VERBOSE}" != X"" ]; then \ ${ECHO_MSG} "$$manpage"; \ fi; \ |