Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 1999 20:11:14 -0700 (PDT)
From:      asami@freebsd.org (Satoshi - Ports Wraith - Asami)
To:        sada@rr.IIJ4U.OR.JP
Cc:        ports@freebsd.org
Subject:   Re: speeding up INDEX generation
Message-ID:  <199907050311.UAA97963@silvia.hip.berkeley.edu>
In-Reply-To: <19990630150007.3438.sada@rr.iij4u.or.jp>
References:   <19990630150007.3438.sada@rr.iij4u.or.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
 * 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907050311.UAA97963>