From owner-freebsd-ports Sun Jul 4 20:11:29 1999 Delivered-To: freebsd-ports@freebsd.org Received: from dfw-ix2.ix.netcom.com (dfw-ix2.ix.netcom.com [206.214.98.2]) by hub.freebsd.org (Postfix) with ESMTP id 7ECA4151FA for ; Sun, 4 Jul 1999 20:11:26 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: (from smap@localhost) by dfw-ix2.ix.netcom.com (8.8.4/8.8.4) id WAA24626; Sun, 4 Jul 1999 22:11:24 -0500 (CDT) Received: from sji-ca4-70.ix.netcom.com(205.186.212.198) by dfw-ix2.ix.netcom.com via smap (V1.3) id rma024619; Sun Jul 4 22:11:18 1999 Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id UAA97963; Sun, 4 Jul 1999 20:11:14 -0700 (PDT) Date: Sun, 4 Jul 1999 20:11:14 -0700 (PDT) Message-Id: <199907050311.UAA97963@silvia.hip.berkeley.edu> X-Authentication-Warning: silvia.hip.berkeley.edu: asami set sender to asami@cs.berkeley.edu using -f To: sada@rr.IIJ4U.OR.JP Cc: ports@freebsd.org In-reply-to: <19990630150007.3438.sada@rr.iij4u.or.jp> Subject: Re: speeding up INDEX generation From: asami@freebsd.org (Satoshi - Ports Wraith - Asami) References: <19990630150007.3438.sada@rr.iij4u.or.jp> Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: sada@rr.IIJ4U.OR.JP (SADA Kenji) * * This is sada from Nagoya. * Does this work well ? * * #!/usr/bin/perl Thanks. Actually, I figured out how to do that in sh: === Index: Makefile =================================================================== RCS file: /home/ncvs/ports/Makefile,v retrieving revision 1.49 diff -u -r1.49 Makefile --- Makefile 1999/06/26 22:29:57 1.49 +++ Makefile 1999/06/28 21:16:13 @@ -58,6 +58,12 @@ @echo -n "Generating INDEX - please wait.." @make describe ECHO_MSG="echo > /dev/null" | \ perl ${.CURDIR}/Tools/make_index > ${.CURDIR}/INDEX +.if !defined(INDEX_NOSORT) + @sed -e 's./..g' ${.CURDIR}/INDEX | \ + sort -t '|' +1 -2 | \ + sed -e 's../.g' > ${.CURDIR}/INDEX.tmp + @mv -f ${.CURDIR}/INDEX.tmp ${.CURDIR}/INDEX +.endif @echo " Done." print-index: ${.CURDIR}/INDEX === but I'll save your message in case I need to do it in perl. :) Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message