From owner-freebsd-ports Sun May 20 18:18:41 2001 Delivered-To: freebsd-ports@freebsd.org Received: from mail.noos.fr (lafontaine.noos.net [212.198.2.72]) by hub.freebsd.org (Postfix) with ESMTP id 25F0737B422 for ; Sun, 20 May 2001 18:18:38 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 10866275 invoked by uid 0); 21 May 2001 01:18:36 -0000 Received: from d165.dhcp212-198-231.noos.fr (HELO gits.dyndns.org) ([212.198.231.165]) (envelope-sender ) by lafontaine.noos.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 21 May 2001 01:18:36 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.3/8.11.3) id f4L1IZD10845; Mon, 21 May 2001 03:18:35 +0200 (CEST) (envelope-from root) Message-Id: <200105210118.f4L1IZD10845@gits.dyndns.org> Subject: Re: PR Review In-Reply-To: <0a9201c0e15f$ccfab8e0$931576d8@inethouston.net> To: "David W. Chapman Jr." Date: Mon, 21 May 2001 03:18:34 +0200 (CEST) Cc: ports@FreeBSD.org Reply-To: clefevre@poboxes.com From: Cyrille Lefevre Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C X-Mailer: ELM [version 2.4ME+ PL92 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org David W. Chapman Jr. wrote: > It works great. woaou :) here is the sequence of commands I used to generate the Makefile.man. cd /usr/ports/x11/XFree86-4 # manual pages lists for i in 1 2 3 4 5 6 7 8 9; do grep man/man$i pkg-plist > /tmp/p$i done cd /usr/X11R6 # plain manual pages for i in 1 2 3 4 5 6 7 8 9; do xargs ls -ld < /tmp/p$i | awk '!/->/{print $NF}' | sed 's,man/man'$i'/,,;s/\.gz//g' >| /tmp/m$i done # symlinked manual pages for i in 1 2 3 4 5 6 7 8 9; do xargs ls -ld < /tmp/p$i | awk '/->/{print $NF, $(NF-2)}' | sed 's,man/man'$i'/,,;s/\.gz//g' >| /tmp/l$i done cd /tmp # combine them as needed for i in 1 2 3 4 5 6 7 8 9; do [ -s m$i ] || continue print -n "MAN$i=" sed 's/^/ /;$! s/$/ \\/' m$i done > m print -n "MLINKS=" >> m sed 's/^/ /;$! s/$/ \\/' l[1-9] >> m Cyrille. -- Cyrille Lefevre - 12, Rue de Bizerte 75017 Paris tel/fax: +33 (0)1 45 22 83 85 home: mailto:clefevre@poboxes.com UNIX is user-friendly; it's just particular work: mailto:Cyrille.Lefevre@edf.fr about who it chooses to be friends with. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message