From owner-freebsd-ports@FreeBSD.ORG Fri Jun 5 12:56:04 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 211D6106566B for ; Fri, 5 Jun 2009 12:56:04 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-fx0-f211.google.com (mail-fx0-f211.google.com [209.85.220.211]) by mx1.freebsd.org (Postfix) with ESMTP id A17388FC12 for ; Fri, 5 Jun 2009 12:56:03 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: by fxm7 with SMTP id 7so1069044fxm.43 for ; Fri, 05 Jun 2009 05:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=AvG2X8KUQE10uCIVG1h73b4n9tAux1SJV1T+gSOX+PE=; b=ZxIVwpm0NThpqSi63/Fv3wWxYIEUYEuGwJ5l2XTOMG4Avc7zCFT5Ta4g2pOC1fhVmh buE9oulO9AdMKc7zt0tUNjxjt95abOvK72F1r5VTZfjBu3BtmZ98SfGmYM23QCo8NMYa JoY8M5to4Y+lMuZ7IrSL8ByHJO5K7tG9uZzmg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=aqdAhEP/wD+HrNPfl2kWwsQywfKWG0uiy2s4VBAVwoCpBeZPj7lzPUeBDtA88Vi6YK 09rDGkQKCCm2sKEienZe1edbCiey8EzMtbNld2lhgpjuHfQbx0lHFIRhBXJ4mj/Dv72V kSS067HCQQ8X+2pmTHKWw1doN6OaGNyaoA6Ks= MIME-Version: 1.0 Received: by 10.204.31.207 with SMTP id z15mr3187842bkc.63.1244206561795; Fri, 05 Jun 2009 05:56:01 -0700 (PDT) In-Reply-To: References: <4A28590D.101@gmail.com> Date: Fri, 5 Jun 2009 15:56:01 +0300 Message-ID: From: Vitaly Magerya To: Eitan Adler Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Automatically generate symlinks for virtual categories. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 12:56:04 -0000 And here [1] is a new version that does the same thing, but uses INDEX file instead of traversing the ports tree. It's quite faster this way (assuming your INDEX is up to date, maybe it's better to allow both algorithms?). Disclaimer: I did not test it properly. The thing that looks strange to me is that the original script appends main category to the name of port when symlinking. I copied that behavior for safety, but are there really naming conflicts in the ports tree? [1] http://tx97.net/pub/files/auto-symlink-virtual.sh