diff options
author | tron <tron> | 1998-03-01 13:38:03 +0000 |
---|---|---|
committer | tron <tron> | 1998-03-01 13:38:03 +0000 |
commit | 01aba75840ebca35ad554ece31676ba66db00928 (patch) | |
tree | 1afd3cce1691fcd0d5aa0f159bdbfdf1fef75704 /mk | |
parent | 3a1194a6968866d8156280ad1ea5c46ff575f1b0 (diff) | |
download | pkgsrc-01aba75840ebca35ad554ece31676ba66db00928.tar.gz |
MANZ now handles symlinks properly.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 12 | ||||
-rw-r--r-- | mk/bsd.port.mk | 12 |
2 files changed, 20 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 94255c66d5c..cdb0498e50f 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,7 +1,7 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 # -# $NetBSD: bsd.pkg.mk,v 1.53 1998/02/28 16:02:21 hubertf Exp $ +# $NetBSD: bsd.pkg.mk,v 1.54 1998/03/01 13:38:03 tron Exp $ # # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. @@ -619,6 +619,7 @@ CAT?= /bin/cat CP?= /bin/cp ECHO?= /bin/echo FALSE?= /usr/bin/false +FILE?= /usr/bin/file GREP?= /usr/bin/grep GUNZIP_CMD?= /usr/bin/gunzip -f GZCAT?= /usr/bin/gzcat @@ -1301,7 +1302,14 @@ _PORT_USE: .USE .elif !defined(MANCOMPRESSED) && defined(MANZ) @${ECHO_MSG} "===> Compressing manual pages for ${PKGNAME}" .for manpage in ${_MANPAGES} ${_CATPAGES} - @${GZIP_CMD} ${manpage} + @if [ -L ${manpage} ]; then \ + set - `${FILE} ${manpage}`; \ + shift `expr $$# - 1`; \ + ${LN} -sf $${1}.gz ${manpage}.gz; \ + ${RM} ${manpage}; \ + else \ + ${GZIP_CMD} ${manpage}; \ + fi .endfor .endif .endif diff --git a/mk/bsd.port.mk b/mk/bsd.port.mk index 2f024534581..8edde17f00f 100644 --- a/mk/bsd.port.mk +++ b/mk/bsd.port.mk @@ -1,7 +1,7 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 # -# $NetBSD: bsd.port.mk,v 1.53 1998/02/28 16:02:21 hubertf Exp $ +# $NetBSD: bsd.port.mk,v 1.54 1998/03/01 13:38:03 tron Exp $ # # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. @@ -619,6 +619,7 @@ CAT?= /bin/cat CP?= /bin/cp ECHO?= /bin/echo FALSE?= /usr/bin/false +FILE?= /usr/bin/file GREP?= /usr/bin/grep GUNZIP_CMD?= /usr/bin/gunzip -f GZCAT?= /usr/bin/gzcat @@ -1301,7 +1302,14 @@ _PORT_USE: .USE .elif !defined(MANCOMPRESSED) && defined(MANZ) @${ECHO_MSG} "===> Compressing manual pages for ${PKGNAME}" .for manpage in ${_MANPAGES} ${_CATPAGES} - @${GZIP_CMD} ${manpage} + @if [ -L ${manpage} ]; then \ + set - `${FILE} ${manpage}`; \ + shift `expr $$# - 1`; \ + ${LN} -sf $${1}.gz ${manpage}.gz; \ + ${RM} ${manpage}; \ + else \ + ${GZIP_CMD} ${manpage}; \ + fi .endfor .endif .endif |