Date: Sat, 2 Nov 1996 19:42:35 -0800 (PST) From: "David E. O'Brien" <obrien@NUXI.com> To: freebsd-ports@freebsd.org (FreeBSD ports list) Subject: suggested changes for manpage processesing Message-ID: <199611030342.TAA27192@relay.nuxi.com>
next in thread | raw e-mail | index | archive | help
I was looking at the new COMPRESS_MAN macro. It's use will look like: post-install: ${COMPRESS_MAN} \ ${PREFIX}/man/man1/foo.1 \ ${PREFIX}/man/man5/bar.5 I was thinking maybe compressing the man pages could like more like they way we do distfiles and patchfiles: MANPAGES+= man/man1/foo.1 \ man/man5/bar.5 And have bsd.port.mk deal with the details. Here is a patch that would do this: --- bsd.port.mk Sat Nov 2 08:06:22 1996 +++ bsd.port.mk.deo Sat Nov 2 19:40:13 1996 @@ -792,7 +792,14 @@ @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} install.man) .endif .endif +.if defined(MANPAGES) +.if !defined(NOMANCOMPRESS) +.for manpage in ${MANPAGES} + @gzip -9nf ${PREFIX}/${manpage} .endif +.endif +.endif #def'ed MANPAGES +.endif #if not do-install target # Package Thoughts? -- David (obrien@nuxi.com)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611030342.TAA27192>