Date: Sat, 5 Jan 2002 15:40:49 +0100 (CET) From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: FreeBSD-gnats-submit@freebsd.org Subject: conf/33575: [PATCH] allow using of -C option during install of man pages Message-ID: <200201051440.g05EenU72574@curry.mchp.siemens.de>
next in thread | raw e-mail | index | archive | help
>Number: 33575 >Category: conf >Synopsis: [PATCH] allow using of -C option during install of man pages >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 06:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Andre Albsmeier >Release: FreeBSD 4.5-PRERELEASE i386 >Organization: >Environment: All FreeBSD systems >Description: When using the man(1) command after a "make installworld", man pages get formatted again even if they didn't change and the corresponding cat page was available already. >How-To-Repeat: cd /usr/src/bin/ls && make install man ls cd /usr/src/bin/ls && make install man ls >Fix: We could use the -C flag for installing manpages. The patches below makes it possible to specify WANT_MAN_COMPARE in /etc/make.conf so that man pages are installed using the -C option. If you don't put WANT_MAN_COMPARE in /etc/make.conf the old behaviour is kept. --- etc/defaults/make.conf.ORI Fri Dec 7 17:48:13 2001 +++ etc/defaults/make.conf Sat Jan 5 15:20:08 2002 @@ -141,6 +141,11 @@ # #NOMANCOMPRESS= true # +# If you want manual pages to be installed only if they have changed +# since the last install, uncomment the following. +# +#WANT_MAN_COMPARE= true +# # # If you want the "compat" shared libraries installed as part of your normal # builds, uncomment these: --- share/mk/bsd.man.mk.ORI Mon Dec 31 14:06:53 2001 +++ share/mk/bsd.man.mk Sat Jan 5 15:25:04 2002 @@ -49,7 +49,11 @@ # Install the manual pages and their links. # +.if defined(WANT_MAN_COMPARE) +MINSTALL= ${INSTALL} -C -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} +.else MINSTALL= ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} +.endif CATDIR= ${MANDIR:H:S/$/\/cat/} CATEXT= .cat >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201051440.g05EenU72574>