From owner-freebsd-ports@FreeBSD.ORG Fri Jun 5 17:38:48 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 8A0751065686 for ; Fri, 5 Jun 2009 17:38:48 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: from mail-bw0-f217.google.com (mail-bw0-f217.google.com [209.85.218.217]) by mx1.freebsd.org (Postfix) with ESMTP id 0D5878FC0C for ; Fri, 5 Jun 2009 17:38:47 +0000 (UTC) (envelope-from vmagerya@gmail.com) Received: by bwz17 with SMTP id 17so541660bwz.43 for ; Fri, 05 Jun 2009 10:38:47 -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=HroMnW75Ix6oaePEa8wBiQ2b5fWdoR+frVEN4KQjPG8=; b=Z6l7QN3VLtYI0PcfpNw2s3ksSOK2p5N1xSf2MSpyJLJlh1l0kJ8Vh0hMdRuu2BNew1 78InpoSpGirvpgkeLnj5Zx5F2PYgtW3VL6wK0FZEupmNxGD35RavrlAKwkVWpv0s4hob Jbsa4YzUPTv+QKSGX+FN5lI5wWPOQ69ERBhuk= 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=mJNiBhdC3wYMNCtTfbJHdsTjpPRnGC9x0Q+JqiDI0U73ko3OVwjIllQBNGR/jEnXJZ 7tharVwC7i2Kk6tZpX0qLOwqhcXeff7Swgd5YeZ+npKwlsvhEarTkhBMTupqe2pVEeei FfoXY4lKtZLzIYlbcPaOpfOnJOlp2iGgv+HDs= MIME-Version: 1.0 Received: by 10.204.115.143 with SMTP id i15mr3400624bkq.103.1244223525468; Fri, 05 Jun 2009 10:38:45 -0700 (PDT) In-Reply-To: <4A2946F4.2010501@gmail.com> References: <4A28590D.101@gmail.com> <4A2946F4.2010501@gmail.com> Date: Fri, 5 Jun 2009 20:38:45 +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 17:38:48 -0000 > I'll added your script to mine as a option. Yeah, I've done that too in the mean time, take a look: [1]. In that version both traverse algorithms share common linking code, it seems more maintainable this way. (I've added -w and -i to catch up with you, but the code overall is quite different, sorry about that). There's a question about the test for main category dir: if you use -w to specify a directory different than that of -p, a simlink "$whereto/category/portname-category" will be created. Maybe "$whereto/category/portname" would be the right thing in this case? [1] http://tx97.net/pub/files/auto-symlink-virtual.sh